Repository navigation
Redact credentials in terminal check headings - #1738
Conversation
Architecture-Review: unchanged; terminal rendering uses the existing command redactor without changing execution or receipt identity. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 5f35986e66b569a5dc8aae2bee14d50c53aa419e, 21.3s: approve (0 critical, 0 important, 2 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Findings without a file location:
- suggestion: The checks.inputs warning still prints the raw command to the terminal — This change redacts the
running:line and the failure heading, but there is one more place where the configured command reaches the terminal unredacted. Whenchecks.inputsnames the command and matches no files in HEAD,_input_keybuildsstatus(f"{workflow}: checks.inputs for {command!r} matches no files..."), andcmd_checkprints that message as-is through itsstatuslambda. If such a command contains URL userinfo or an Authorization header, the credential appears in this warning. The task only asks for the two headings, so this does not block the change. The smallest fix is to wrapcommandwithgithub.redact_credentialshere, or redact inside thestatuslambda incmd_checkso every status line is covered.
Native Claude output is retained in the restricted local review receipt.
| assert sum(line.startswith(("stage 1/2: exit ", "exit ")) | ||
| for line in out.splitlines()) == 1 | ||
| heading = command.replace("fake-heading-secret", "[REDACTED]") | ||
| assert out.count(f"running: {heading}\n") == out.count("stage 1/2: exit ") == 1 |
There was a problem hiding this comment.
suggestion: The updated test no longer catches a stray bare exit N line
The old assertion counted output lines starting with either stage 1/2: exit or exit and required exactly one. The new one uses out.count("stage 1/2: exit "), so an extra bare exit N line on stdout would now go unnoticed. This is minor. To keep that coverage without adding lines, chain the old line-prefix count into the same equality.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Redact credentials in terminal check headings
Context and goal
Closes #1655
Acceptance
Notes
Base
main @ a6ad74d
Base: a6ad74d
Validation
Recorded for
c31580ba8415uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review