drone-ssh icon indicating copy to clipboard operation
drone-ssh copied to clipboard

Secrets from Organization does not get taken

Open softshipper opened this issue 4 years ago • 3 comments

Hi all

I have created a secret per Organization as described on https://docs.drone.io/secret/organization/ that it is used in the pipeline:

---
kind: pipeline
type: docker
name: Play with ssh

steps:
  - name: Promote to STAGE
    image: appleboy/drone-ssh
    settings:
      host: ci.example.io
      username: admin
      password:
        from_secret: ssh_password
      port: 22
      script:
        - echo "Welcome SSH"
        - ls -la

trigger:
  branch:
    - master

The secret does not get recognized from Per Organization but it recognizes when I put the secret in Screenshot from 2020-10-07 15-39-24

Why it does not work the secret from Per Organization?

Thanks

softshipper avatar Oct 07 '20 13:10 softshipper

I will try it.

appleboy avatar Nov 17 '20 02:11 appleboy

Did you check this? Organization secrets can be used by any repository that belongs to the named organization. (source)

I was having problems with organization secrets to I started to use repo secrets

carloschameleon avatar May 09 '21 10:05 carloschameleon

I faced same issue here I created an organization secret from the dashboard and it didn't work while it works from the repository

natget21 avatar May 21 '22 21:05 natget21