Update docs/versioned_docs/version-2.7/20-usage/40-secrets.md

Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
This commit is contained in:
6543
2024-11-07 12:35:59 +01:00
committed by GitHub
parent 4420bb9c7d
commit 88f85a7ce4

View File

@@ -26,7 +26,8 @@ once their usage is declared in the `secrets` section:
+ secrets: [ some_username, SOME_PASSWORD ]
```
The case of the environment variables is not changed, but secret matching is done case-insensitively. In the example above, `DOCKER_PASSWORD` would also match if the secret is called `docker_password`.
The environment variables retain their original case, but secret matching is performed in a case-insensitive manner.
In this example, `DOCKER_PASSWORD` would still match even if the secret is named `docker_password`.
### Use secrets in normal steps via environment