Skip to content

Bare pin comments + zizmor-action v0.6.0 (and the findings it surfaces) - #53

Merged
jeremy merged 2 commits into
mainfrom
ci/bare-pin-comments
Jul 27, 2026
Merged

Bare pin comments + zizmor-action v0.6.0 (and the findings it surfaces)#53
jeremy merged 2 commits into
mainfrom
ci/bare-pin-comments

Conversation

@jeremy

@jeremy jeremy commented Jul 27, 2026

Copy link
Copy Markdown
Member

Part of the post-merge redesign of the comment-sync program (see basecamp/.github#10). Moving each # zizmor: ignore[...] to its own line below the pin makes Dependabot itself maintain the bare # vX.Y.Z comments — no push automation needed on its PRs.

For this repo that requires bumping zizmor-action v0.5.2 → v0.6.0 first: v0.5.2 resolves a 1.23-era zizmor that doesn't associate standalone ignore comments. The newer zizmor surfaces real issues, fixed rather than suppressed:

  • App-token scoping: create-github-app-token uses gain permission-contents (write for the skills-sync push — scripts/sync-skills.sh only does git push; read for the seed templates' private-module access). The seed templates' owner-wide default (deliberate: ships disabled until a seeded repo scopes repositories:) carries an annotated ignore.
  • Dead trivy pin in seed: e368e328 is a commit no tag points at (why the earlier catch-up couldn't fix its comment); repinned to ed142fd0 (v0.36.0), the fleet's SHA.
  • Seed compound comments get the same standalone-ignore restructure.

zizmor 1.28: no findings, 22 ignored; actionlint clean.

…aces

Move the release.yml zizmor ignore to its own line so Dependabot can
maintain the bare version comment natively (same restructure as
basecamp-sdk#458), and bump zizmor-action v0.5.2 -> v0.6.0 so the audit
runs a zizmor that associates standalone ignore comments (v0.5.2
resolves a 1.23-era zizmor that does not).

The newer zizmor surfaces real issues, fixed here rather than ignored:
- create-github-app-token uses gain permission-contents scoping (write
  for the skills sync push; read for the seed templates' private-module
  access), with an annotated ignore for the seed templates' deliberate
  owner-wide default that ships disabled until seeded repos scope
  repositories: to their private modules
- seed trivy-action was pinned to e368e328, a commit no tag points at;
  repin to ed142fd0 (v0.36.0), the SHA the rest of the fleet uses
- seed compound pin comments get the same standalone-ignore restructure
Copilot AI review requested due to automatic review settings July 27, 2026 21:23
@github-actions

Copy link
Copy Markdown

Sensitive Change Detection (shadow mode)

This PR modifies control-plane files:

  • .github/workflows/release.yml
  • .github/workflows/test.yml

Shadow mode — this check is informational only. When activated, changes to these paths will require approval from a maintainer.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8f21544a02

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread seed/.github/workflows/release.yml Outdated
Comment thread seed/.github/workflows/release.yml Outdated

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

This PR updates the repo’s GitHub Actions security/audit setup to support the “bare pin comment” style for Dependabot-managed version comments and bumps zizmor-action to a version that correctly associates standalone # zizmor: ignore[...] annotations, addressing newly surfaced findings in seed workflows.

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.

Changes:

  • Bump zizmorcore/zizmor-action from v0.5.2 to v0.6.0 in the repo audit workflow.
  • Restructure zizmor ignore annotations onto their own lines where needed (to keep pin comments “bare”).
  • Update seed workflows to (a) repin Trivy action and (b) scope GitHub App token contents permissions (noting one seed permission mismatch in sync-skills).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
seed/.github/workflows/test.yml Adds scoped permission-contents: read to seeded App tokens for private module access.
seed/.github/workflows/security.yml Repins Trivy action to a new SHA/tag and scopes App token contents permission for security scans.
seed/.github/workflows/release.yml Splits zizmor ignores off pinned uses: lines and adds App token contents scoping (with a sync-skills permission that needs adjustment).
.github/workflows/test.yml Bumps zizmor-action to v0.6.0 for improved ignore association.
.github/workflows/release.yml Moves zizmor ignore to its own line and scopes the skills-sync App token to contents: write.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread seed/.github/workflows/release.yml Outdated
Review feedback (Codex): the Homebrew tap token pushes the formula and
the skills token pushes skill files; both need permission-contents:
write, not read. The skills token is already scoped via repositories:
so its owner line needs no github-app ignore.
Copilot AI review requested due to automatic review settings July 27, 2026 21:27
@github-actions github-actions Bot added the enhancement New feature or request label Jul 27, 2026
@jeremy
jeremy merged commit 038b78c into main Jul 27, 2026
22 checks passed
@jeremy
jeremy deleted the ci/bare-pin-comments branch July 27, 2026 21:29

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da79000ed1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread seed/.github/workflows/release.yml
Copilot stopped reviewing on behalf of jeremy due to an error July 27, 2026 21:38

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Comment thread seed/.github/workflows/test.yml
Comment thread seed/.github/workflows/security.yml
Comment thread seed/.github/workflows/release.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci enhancement New feature or request seed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants