Skip to content

fix(odd-status): keep the job token out of the checkout and say what --secret-env-vars does - #49

Merged
using-system merged 1 commit into
mainfrom
fix/odd-status-job-token-reach
Sep 19, 2026
Merged

using-system merged 1 commit into
mainfrom
fix/odd-status-job-token-reach

Conversation

@using-system

Copy link
Copy Markdown
Owner

What

  • persist-credentials: false on the tests job's checkout in ci.yml and on the four README example workflows; the persisted job token is named in every "What this grants" section (nothing in these actions uses git with the token; release.yml keeps the default, its tag push needs it).
  • scripts/run-copilot.sh, odd-status/README.md, setup-copilot/README.md and the token input description say what --secret-env-vars does, as the CLI's help states it: the value kept out of the environment of the shells and MCP servers the run opens and redacted from the output - a filter, not a boundary, since the CLI process holds the token and a same-user shell can read a process's environment; a user token passed as token is exposed the same way.
  • ci.yml states next to copilot-requests: write why a fork's pull_request run does not get that scope (GitHub's documentation for a public repository; not observed on a fork run) and what the fork-approval policy adds; the smoke stays in ci.yml.

Why

Closes #43. The flag's help text, the local observation with a placeholder value, the documentation basis for the fork case and the amended choices are recorded on the issue.

How to test

actionlint 1.7.12, shellcheck, ruff and pytest (179 passed) locally; the tests job proves the checkout without credentials still installs the package (the resolve step reads the public oddyssey repository anonymously).

Review

Review subagent: green after one round (the token description in action.yml still said "never receive it"; five minors, all fixed). Security review: no findings.

🤖 Generated with Claude Code

…--secret-env-vars does

Closes #43

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@using-system
using-system merged commit 799e18f into main Sep 19, 2026
16 checks passed
@using-system
using-system deleted the fix/odd-status-job-token-reach branch September 19, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant