Skip to content

Name both output modes of the variable listing - #25

Merged
ptr727 merged 1 commit into
developfrom
fix/variable-listing-wording
Aug 4, 2026
Merged

Name both output modes of the variable listing#25
ptr727 merged 1 commit into
developfrom
fix/variable-listing-wording

Conversation

@ptr727

@ptr727 ptr727 commented Aug 4, 2026

Copy link
Copy Markdown
Owner

From the promotion review, which disputed the claim that the bare variable listing prints values.

Measured on gh 2.46.0: it prints them in both modes. The terminal form renders a VALUE column and truncates long entries; the piped form emits each value in full. Piped is what an audit run produces, since its output is captured rather than watched, so the guarded case is the more exposed of the two.

The original sentence described the captured form while reading like a claim about the terminal one, which is what made the finding reasonable. It now says which mode does what.

Also takes the sound half of the suggestion: never request the value field, and never use gh variable view, which prints one by design. --json name alone would not stop someone reaching for --json name,value to make the output more useful.

🤖 Generated with Claude Code

The warning described the captured form, where a value prints in full, and
read as though it described the terminal form, where the column is
truncated. Both emit values, and the captured one is what an audit keeps.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 4, 2026 23:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Clarifies the audit guidance around gh variable list output behavior to explicitly distinguish terminal (TTY) vs captured/piped output, reducing the risk of unintentionally logging GitHub Actions variable values during audits.

Changes:

  • Updates the AUDIT.md guidance to state that gh variable list shows a value column in terminal output and emits full values when output is captured.
  • Strengthens the recommendation to avoid requesting value via JSON output and to avoid gh variable view (which prints a value by design).

@ptr727
ptr727 merged commit c51e025 into develop Aug 4, 2026
5 checks passed
@ptr727
ptr727 deleted the fix/variable-listing-wording branch August 4, 2026 23:48
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