Skip to content

Say why the Action Text job installs gems ad hoc, for zizmor 1.30 - #1358

Open
jeremy wants to merge 2 commits into
mainfrom
zizmor-adhoc-packages
Open

Say why the Action Text job installs gems ad hoc, for zizmor 1.30#1358
jeremy wants to merge 2 commits into
mainfrom
zizmor-adhoc-packages

Conversation

@jeremy

@jeremy jeremy commented Sep 10, 2026

Copy link
Copy Markdown
Member

zizmor 1.30.0 (what zizmor-action 0.6.3 runs) teaches its adhoc-packages audit to recognize bundle add, and the Action Text job runs it twice on purpose: once to pin json 2.x with a version written in the workflow, for the reason the comment above it already gives, and once to install the gem under test from this checkout, which is the point of the job. Neither is the drift the audit is after, so the step carries a zizmor: ignore[adhoc-packages] with that reason.

Run online with zizmor 1.30.0 at the regular persona the action uses: two findings before, none after. This repo is on zizmor-action 0.5.3 and #1320 moves it to 0.6.2 (zizmor 1.29, which does not flag these); the bump after that would have gone red here.

zizmor 1.30.0's adhoc-packages audit now recognizes `bundle add`, and the
Action Text job runs it twice on purpose: to pin json 2.x with a version
written in the workflow, for the reason the comment above it gives, and to
install the gem under test from this checkout, which is the point of the
job. The ignore says so on the step, so the audit stays green when
zizmor-action moves past 0.6.2 (#1320 takes it there; the next bump runs 1.30).
Copilot AI balanced review requested due to automatic review settings September 10, 2026 18:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-10T18:33:44.648235Z 7fc095a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

🟢 Approved

The change is limited to workflow documentation for a zizmor ignore and does not alter runtime behavior.

Pull request overview

This PR updates the CI workflow to document why the Action Text job intentionally installs gems ad hoc, so zizmor 1.30’s adhoc-packages audit can be safely ignored with a clear rationale.

Changes:

  • Adds an inline zizmor: ignore[adhoc-packages] justification to the Action Text “Configure Rails” step to explain the intentional bundle add usage.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File summaries
File Description
.github/workflows/ci.yml Documents why the Action Text job’s ad hoc gem installs are intentional and should be ignored by zizmor’s adhoc-packages audit.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/ci.yml Outdated
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