-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Woodpecker UI isn't showing secrets's names with uppercase. #2368
Comments
Woodpecker internally converts all secrets to lower case: https://github.com/search?q=repo%3Awoodpecker-ci%2Fwoodpecker%20.ToLower&type=code I think the corresponding env var if |
the problem is that it's not converting uppercase env variable into lowercase for the workflow then. |
@GamePlayer-8 I don't really understand what you mean. Secret env vars are and should be uppercase, no matter the secret name. |
Secret isn't displayed as uppercase in the UI of woodpecker after adding it, even if I type it all with uppercase. |
That's also intentional because all secret names are converted to lowercase. However, in workflow yamls you should be able to use them case-insensitive. |
I've tried to call the lowercase & I got no data while with uppercase I've got the secret. Shouldn't the environment variable inside the workflow be converted to lowercase to avoid confusion? |
No, env vars should always be uppercase. |
I'm using:
And only with the uppercase contains the actual secret. |
Hmm then this should be updated. |
secrets are always converted to lowercase. Env vars which the secret is exposed as if using |
Component
web-ui
Describe the bug
Writing secrets with uppercase i.e.
OCI_TOKEN
is being interpreted asoci_token
for the web UI although it stays asOCI_TOKEN
in the workflow.System Info
`{"source":"https://github.com/woodpecker-ci/woodpecker","version":"next-5bd12aa646"}`
Additional context
Might be related to #2084
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: