Skip to content

Keep secrets out of the container's command line - #78

Open
marcizhu wants to merge 2 commits into
match-task-links-to-sitefrom
keep-secrets-out-of-args
Open

marcizhu wants to merge 2 commits into
match-task-links-to-sitefrom
keep-secrets-out-of-args

Conversation

@marcizhu

Copy link
Copy Markdown
Member

Stack: 1. #75 tests → 2. #76 bug fixes → 3. #77 link matching → 4. #78 secrets → 5. #79 test mode removal

Summary

A Docker action's runs.args end up on the docker run command line, where other processes on the runner can read them; GitHub only masks them in the logs. The Teamwork token is now read from the INPUT_TEAMWORK_API_TOKEN env var the runner already passes by name, and the unused GITHUB_TOKEN becomes an optional, deprecated input. Both of their args slots stay, empty, so the other inputs keep their positions.

Evidence

  • Before: this repo's CI log shows docker run … "***" "localhost" "test_api_token" …: the GitHub token is on the command line, masked only in the log. The same command passes -e "INPUT_TEAMWORK_API_TOKEN" by name.
    After: the container's args are ["", "<uri>", "", "true", "PR Open", …], with the token only in its environment (checked with docker inspect). All 22 cases pass with the third arg empty; they would all get a 401 if the token weren't read from INPUT_TEAMWORK_API_TOKEN.

🤖 Generated with Claude Code

marcizhu and others added 2 commits October 20, 2026 19:58
The action never used it. Keep the input, now optional, so workflows
that pass it don't get an "unexpected input" warning, and keep its args
slot so the other args stay in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Passing secrets in runs.args put them on the docker run command line,
where other processes on the runner can read them; GitHub only masks
them in the logs. The runner already gives the container every input as
an INPUT_* env var, passed by name only, so read the token from there
and leave the secrets' args slots empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@marcizhu
marcizhu requested a review from a team as a code owner October 20, 2026 18:20
@marcizhu marcizhu mentioned this pull request Oct 20, 2026
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.

2 participants