Trusted repos in rc.5

I feel a bit dumb right now.

I don’t find the “Trusted” checkbox on the rc.5 UI.

The CLI says it does the job, without actually flipping the flag

➜  DRONE_SERVER=xxx DRONE_TOKEN=$DRONE_TOKEN_V1 ./drone repo update xxx --trusted=true                         
Successfully updated repository xxx
➜  DRONE_SERVER=xxxx DRONE_TOKEN=$DRONE_TOKEN_V1 ./drone repo info xxx                                          
Owner: karnov
Repo: xxx
Config: .drone.v1.yml
Visibility: internal
Private: true
Trusted: false
Protected: false
Remote: xxx

The API returns 200, but the flag is not set

curl -i -X PATCH https://xxx/api/repos/yyyy/zzzz -H "Authorization: Bearer $DRONE_TOKEN_V1" --data '{"trusted": true}'

HTTP/2 200 
cache-control: no-cache, no-store, must-revalidate, private, max-age=0
content-type: application/json
expires: Thu, 01 Jan 1970 00:00:00 UTC
pragma: no-cache
vary: Origin
x-accel-expires: 0
content-length: 562
date: Fri, 08 Feb 2019 11:26:59 GMT


Is it me or Drone? :slight_smile:

only a drone system admin can see the trusted checkbox. see

1 Like

doh, my colleague set this instance up. I’m not used to not being admin :slight_smile:

I’ll try shortly.

Works. This is actually something know in 1.0 i wasn’t aware. Thanks for help.