Skip to content

fix: stop leaking GITHUB_TOKEN in CI script tracing#282

Merged
jmeridth merged 1 commit intoossf:mainfrom
vinayada1:fix/ci-script-secret-tracing
Apr 7, 2026
Merged

fix: stop leaking GITHUB_TOKEN in CI script tracing#282
jmeridth merged 1 commit intoossf:mainfrom
vinayada1:fix/ci-script-secret-tracing

Conversation

@vinayada1
Copy link
Copy Markdown
Contributor

@vinayada1 vinayada1 commented Apr 7, 2026

Summary

The CI helper script writes a temporary config file that includes GITHUB_TOKEN while shell tracing is enabled. That allows the expanded token value to appear in local or workflow logs.

This change disables tracing only around the config-generation block so the token is not echoed, while keeping the rest of the script's trace output intact.

The CI helper script enables shell tracing globally and writes
GITHUB_TOKEN into a temporary config file via heredoc. With tracing
left on, the expanded token value can appear in workflow logs.

Disable tracing only around the config-generation block so secret
values are not echoed while preserving the rest of the script's
trace output.
@vinayada1 vinayada1 requested a review from a team as a code owner April 7, 2026 17:37
@github-actions github-actions Bot added the fix label Apr 7, 2026
@jmeridth jmeridth merged commit a01f8f0 into ossf:main Apr 7, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants