Can't add secrets from CLI (need PR secret)


I’m trying to add a new secret a repo with PR event.
When using the UI I can’t see this option, using the CLI show me the next error:
json: cannot unmarshal array into Go value of type drone.Secret

The command I run:
drone secret add --event=pull_request repository key value

Drone version - 0.8
CLI version - 0.8 (mac os)

The most common root cause for this issue is using the http address instead of the https address. See this thread for more info: Not able to add a user via CLI