Skip to content

Set export-env input to false by default#114

Merged
volodymyrZotov merged 4 commits intomainfrom
vzt/change-default-export-env
Aug 14, 2025
Merged

Set export-env input to false by default#114
volodymyrZotov merged 4 commits intomainfrom
vzt/change-default-export-env

Conversation

@volodymyrZotov
Copy link
Copy Markdown
Contributor

@volodymyrZotov volodymyrZotov commented Aug 13, 2025

As we anyway plan to release v3, I think this is a good opportunity to introduce this breaking change.

So, in v3 of the action the export-env input will defaults to false.
This will help to mitigate the next security concern. As exporting secret as env variable in the job will make it available for all future steps including 3d party actions. If some malicious 3d party action is used it can get an access to the secret from env var.

Though, the risk is low, the safer way for the action would be to defaults to false and let the users explicitly set export-env input, if they want to export secrets as env variables.

This PR also updates readme to show reccomended example of using secrets as step outputs as well as exporting secrets as env vars.

Resolves #79

@volodymyrZotov volodymyrZotov marked this pull request as ready for review August 13, 2025 22:43
Copy link
Copy Markdown
Member

@edif2008 edif2008 left a comment

Choose a reason for hiding this comment

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

Thank you for making this change. This will default to the safer way of providing secrets for following steps.

Approved with a couple of nits.

Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@volodymyrZotov volodymyrZotov merged commit 438a012 into main Aug 14, 2025
51 checks passed
@volodymyrZotov volodymyrZotov deleted the vzt/change-default-export-env branch August 14, 2025 15:01
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.

export-env security risk

2 participants