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

add env-var-template-variables option #892

Closed

Conversation

tjenkinson
Copy link
Contributor

wip

@jetersen
Copy link
Member

I don't think this makes sense as you could potentially extract secrets.

@jetersen jetersen closed this Jan 13, 2022
@tjenkinson
Copy link
Contributor Author

tjenkinson commented Jan 13, 2022

Hi did you see #847 (comment) ?

@jetersen
Copy link
Member

I did but the potential is still there and not everybody has configured their branch with branch protection and etc.
Even the potential for a bad actor that gets access to a GitHub account and can suddenly extract all org secrets that are available for a repo or repo secrets.
Basically this is just a big NO NO.

@tjenkinson
Copy link
Contributor Author

I understand the concern about leaking secrets, and how bad that could be if it happened.

I think protection like this is too high level though.

If a user can can get a config change into the main branch, they could also get a change in to add a new line to an action config to log the secrets anyway. Any protection at this level is essentially redundant, given there are simpler ways to get the secrets.

@jetersen
Copy link
Member

jetersen commented Jan 14, 2022

There are already protection for logging secrets so that is less likely.
Of course they could setup a server and send the secrets to it.
I just don't think ENV is the right way.

If you want further customization you could potentially use the action output body and then use something as simple as envsubst inside your action.

I don't want to support this use case. In your workflow you can add any steps to achieve this.

Also I think there is a limit to how many features we want to support.
Just because you can, does not mean you should add all features.

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.

None yet

2 participants