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

FIX: Remove environment print for security #55

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented Jan 24, 2024

  • As 'env' prints the entire environment this is a route to accidentally leak secrets into public logs. While GitHub properly screens secrets

e.g.

...
LANG=C.UTF-8
RUNNER_ARCH=X64
RUNNER_TEMP=/home/runner/work/_temp
INPUT_ANACONDA_NIGHTLY_UPLOAD_TOKEN=***
ACTIONS_RUNTIME_URL=https://pipelinesghubeus12.actions.githubusercontent.com/qHNE2myTV4smS5AnZY3ul8hK3jNsaMgPRnYT5KDbQp06Cln8tW/
CONDA_PROMPT_MODIFIER=(upload-nightly-action) 
...

it would be better to not provide a chance for something to go wrong.

* As 'env' prints the entire environment this is a route to accidentally
  leak secrets into public logs. While GitHub properly screens secrets
  it would be better to not provide a chance for something to go wrong.
@matthewfeickert matthewfeickert requested a review from a team January 24, 2024 17:41
@matthewfeickert matthewfeickert self-assigned this Jan 24, 2024
@bsipocz bsipocz added the bug Something isn't working label Jan 24, 2024
@matthewfeickert matthewfeickert merged commit 6e9304f into main Jan 24, 2024
2 checks passed
@matthewfeickert matthewfeickert deleted the fix/avoid-env-print branch January 24, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants