Skip to content

ci: Pin the pip-audit action to its commit SHA - #288

Merged
pterw merged 1 commit into
mainfrom
ci/pin-pip-audit-action
Oct 31, 2026
Merged

pterw merged 1 commit into
mainfrom
ci/pin-pip-audit-action

Conversation

@pterw

@pterw pterw commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Summary

Pins the one third-party action in .github/workflows/test.yml, pypa/gh-action-pip-audit, to the commit its v1.1.0 tag points at (1220774d901786e6f652ae159f7b6bc8fea6d266, kept as a # v1.1.0 comment). A tag can be moved by the action's owner; a commit SHA cannot. zizmor (run by qlty) reported this as qlty's one blocking issue on PR #285, and the 2026-09-14 code-review audit asked for the same pin. The actions/* references stay on tags: zizmor's default policy allows them, and without Dependabot a SHA pin goes stale silently (owner ruling 2026-10-31, after advice).

First PR of a stacked train: the F-B23-65 fix and the docsync fixes are cut from this branch's head.

State

Task What Commit Review
1 Pin the pip-audit action b765361 approved

Validation at this head

Head b765361f. Scoped gates (owner ruling 2026-10-31), re-run fresh before this PR opened: tests/test_ci_workflows.py and tests/scripts/dev/test_ci_jobs.py 46 passed; pre-commit run --all-files (its check-yaml hook parses the workflow; 10 hooks pass) and doc_state_sync.py --check pass. The full suite was not re-run, because no Python changed; the pin stays 3158 passed. The tag was resolved with gh api repos/pypa/gh-action-pip-audit/git/ref/tags/v1.1.0 (type: commit), and the action's action.yml at that commit still takes the step's inputs key. Checked locally with the qlty CLI: the zizmor finding is gone with the pin.

Codex: waived by the owner until the usage limits reset. CI: green at this head on all four jobs (run 41228892888; the Security audit (pip-audit) step ran on the pinned commit and succeeded; checks 2998 passed, 4 skipped, 156 deselected). qlty now reports no blocking issues; Codacy 0 new issues; no open review threads.

Checklist

  • pytest -q passes (update SESSION_CONTEXT Section 1 if test count changed) -- workflow tests only: no Python changed
  • pre-commit run --all-files passes (all hooks)
  • python scripts/doc_state_sync.py --check exits 0
  • PLAYBOOK Section 3 reflects current WP/task state
  • PLAYBOOK Section 4 has a dated log entry:
    - Batch WP: inside DOCSYNC:CURRENT-BATCH-START/END markers
    - Side task: after DOCSYNC:CURRENT-BATCH-END marker
  • Changes are within scope of the active batch definition
    (or deviation is logged in the Section 4 entry)

pypa/gh-action-pip-audit was referenced by the mutable tag v1.1.0,
which zizmor flags as unpinned-uses (qlty's one blocking issue). Pin
it to the commit the tag resolves to; actions/* stay on tags because
zizmor allows them. No Python changed, so no test was added.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@pterw
pterw marked this pull request as ready for review October 31, 2026 18:27
@chatgpt-codex-connector

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 ⚠️ Failed 2026-10-31T18:27:36.365234Z
We couldn’t complete this review. Comment @codex review to try again.
b765361 Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@pterw
pterw merged commit f8bd5df into main Oct 31, 2026
6 checks passed

@graphify-labs graphify-labs Bot 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.

Graphify reviewed this change.

No issues found by static checks — no coupling regressions or blocking issues in the code graph. That is not the same as safe to merge: see what was not checked.

Not checked: tests were not run; no formal proof of the changed code.


Graphify review — findings

Pins the third-party pypa/gh-action-pip-audit step in the test workflow to commit 1220774d… with a trailing # v1.1.0 comment, so a moved tag can't change what CI runs and zizmor's unpinned-uses finding (qlty's one blocking issue) goes away. The actions/* references stay on tags, since zizmor allows them. The playbook gets an execution-log entry for the pin, the oldest entry ("Tighten the CI split tests after review") rolls off to the log archive, and the archive index is regenerated to match.

No blocking issues surfaced. 1 lower-confidence candidate did not survive cross-model review.

Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 12 functions depend on the 12 functions this change touches.

Health — grade A; no new coupling hotspots.

Verification — 12 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 12 function(s) in the blast radius were not formally verified this run

@pterw
pterw deleted the ci/pin-pip-audit-action branch October 31, 2026 20:10
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.

1 participant