Drone 1 Docs question - Secrets: environment or settings?

Hi,

I see in the Secrets section of the docs, pages https://docs.drone.io/secret/repository/ and https://docs.drone.io/secret/organization/ that the code snippet showing the sample for sourcing plugin setting and the repo are nested under the environment key. Shouldn’t they be under settings instead?

kind: pipeline
name: default

steps:
- name: build
  image: plugins/docker
  environment:
    repo: octocat/hello-world
    username:
      from_secret: docker_username
    password:
      from_secret: docker_password

Thanks
L.

you are correct, the second example should be a settings block and not an environment block. we will have the docs updated shortly.