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

Remove quotes around env variable name in resolveBuildSecretEnv #176

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Remove quotes around env variable name in resolveBuildSecretEnv #176

merged 1 commit into from
Oct 2, 2023

Conversation

branchgrove
Copy link
Contributor

@branchgrove branchgrove commented Sep 26, 2023

When trying to implement an input for secrets defined by environment variables to the build-push-action I made use of the new resolveBuildSecretEnv implemented in: a1ffbe9.

I implemented a test for the new input and it didn't work due to csv parsing breaking because of the quotes around the env variable name as can be seen here. After monkeypatching this function (removing the " around the env variable name) and building again it works correctly as can be seen here.

Pasting images since action runs disappear after a while:
image
image

@branchgrove
Copy link
Contributor Author

@crazy-max sorry for the ping, I hope this can get merged as it is a quite blocking issue for reading env variables to secrets. After this I will create a pull request in the action to make use of this change.

Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks! And sorry for the delay!

About the implementation on build push action, see my comment #110 (comment)

@branchgrove
Copy link
Contributor Author

LGTM thanks! And sorry for the delay!

About the implementation on build push action, see my comment #110 (comment)

No worries!

Just like he said i do not have access to providing inputs directly to the action. In my case it lives in a reusable workflow which can define environment variables but not like that directly. In our case environment variables can be defined dynamically when running the workflow including env vars that contain secrets. There is also another input to this workflow that says what secrets should point to what environment variables.

@crazy-max crazy-max merged commit f5c9bb7 into docker:main Oct 2, 2023
17 checks passed
@branchgrove
Copy link
Contributor Author

@crazy-max just a few more questions:

When will a new npm package version of this be released?

In the pull request to the GitHub action should i bump the package version with it?

❤️

@crazy-max
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants