Skip to content

Set export-env input to false by default - #114

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

volodymyrZotov merged 4 commits into
mainfrom
vzt/change-default-export-env

Conversation

@volodymyrZotov

@volodymyrZotov volodymyrZotov commented Aug 13, 2025 •

Copy link
Copy Markdown
Contributor

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

@edif2008 edif2008 left a comment

Copy link
Copy Markdown
Member

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 Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
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