Skip to content
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

Case for secret names is altered #3290

Closed
3 tasks done
sschnabe opened this issue Jan 29, 2024 · 1 comment · Fixed by #3375
Closed
3 tasks done

Case for secret names is altered #3290

sschnabe opened this issue Jan 29, 2024 · 1 comment · Fixed by #3375
Labels
bug Something isn't working ux user experience

Comments

@sschnabe
Copy link

Component

server

Describe the bug

After creating a repository secret with name TF_VAR_github_username the name is altered in secrets list to tf_var_github_username. In workflow the secret is accessible as TF_VAR_GITHUB_USERNAME.

IMHO the environment should stay TF_VAR_github_username (terraform is only an example here).

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.2.2"}


Database: [CloudSQL](https://cloud.google.com/sql/docs/postgres/editions-intro) Postgres 14
Woodpecker Server & Agent are running in k8s

Additional context

Workaround:

commands:
  - export TF_VAR_github_token=$TF_VAR_GITHUB_TOKEN
  - export TF_VAR_github_username=$TF_VAR_GITHUB_USERNAME
  - terraform plan -lock=false

instead of

commands: [terraform plan -lock=false]

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@sschnabe sschnabe added the bug Something isn't working label Jan 29, 2024
@anbraten anbraten added the ux user experience label Jan 29, 2024
@anbraten
Copy link
Member

linking #3096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ux user experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants