Skip to content

ci: run release zizmor under the standards config - #615

Merged
kyle-sexton merged 1 commit into
mainfrom
ci/zizmor-standards-config
Nov 24, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
ci/zizmor-standards-config

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Summary

The release workflow's zizmor step now runs under the standards zizmor config instead of the synced in-tree .github/zizmor.yml. This removes ci-runner's dependency on that synced copy, so the standards sync can stop delivering it (phase F).

Fix

zizmorcore/zizmor-action has a config input and passes it as --config. With no input it passes nothing, so zizmor's own discovery reads .github/zizmor.yml from the repository root (zizmor configuration, "Local discovery"; action input and --config handling in action.yml and action.sh at the pinned ref).

release-publish-image.yml now runs the first-party melodic-software/ci-workflows/.github/actions/download-standards@main (the action pr-audit-workflows.yml uses for the same fallback) and passes ${{ steps.standards.outputs.path }}/.github/zizmor.yml as config. The zizmor-action pin, zizmor version 1.32.0 and persona are unchanged; third-party actions stay hash-pinned. The new caller is added to the expected callers in workflow-pin-metadata.test.cjs.

The PR lane (pr-require-checks.yml job pr-audit-workflows) already goes through the ci-workflows reusable, which reads the caller's file at the base commit and otherwise standards. It needs no change.

Verification

  • actionlint (with the repo's queue ignore) on release-publish-image.yml: clean.
  • node --test .github/scripts/workflow-pin-metadata.test.cjs: 5 passed.
  • pwsh scripts/Test-ReleasePins.ps1: pins consistent.
  • Not run: the release workflow itself (tag-triggered).

Related

No linked issue: phase F reader move (standards track-main)

🤖 Generated with Claude Code

The release workflow's zizmor-action step passed no config, so zizmor
discovered the synced .github/zizmor.yml in the tree. Resolve
melodic-software/standards with download-standards and pass its
.github/zizmor.yml, the same source pr-audit-workflows uses when a
repository has no copy of its own.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T10:26:47.117475Z e39bf22 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.

@kyle-sexton
kyle-sexton enabled auto-merge (squash) November 24, 2026 10:25
@github-actions

Copy link
Copy Markdown

claude-security-review reviewed e39bf22e2443d3b662777fbccc1c28d609357753: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #615, ci: run release zizmor under the standards config

I found no security issues in this change.

What changed

  • .github/workflows/release-publish-image.yml: the verify job gets a new step that runs the first-party melodic-software/ci-workflows/.github/actions/download-standards@main. The zizmor step now passes config: ${{ steps.standards.outputs.path }}/.github/zizmor.yml. The zizmor-action SHA pin, zizmor 1.32.0 and persona: pedantic are unchanged.
  • .github/scripts/workflow-pin-metadata.test.cjs: adds the new caller to expectedCiWorkflowsCallers.

What I checked

  • Token scope and secrets. The new step runs only in the verify job. That job is scoped permissions: contents: read (L27-L28). The step gets no secrets.* and no env; the only GITHUB_TOKEN env in that job is on the freshness step (L76). The steps that hold write scopes (contents, packages, attestations, id-token) are in publish-evidence (L148-L153). That job runs on a separate runner, checks out and rebuilds from the tagged source, and does not use this action. No token's scope grows.
  • Untrusted input. The workflow is triggered only by a v* tag push and is limited to github.repository == 'melodic-software/ci-runner'. No pull request or fork text reaches the new step. The step output feeds only a with: input, not a run: block, so there is no expression-injection surface.
  • Mutable @main reference and standards-controlled config. Who controls the action and the zizmor config moves to the owner's own ci-workflows repository, and this repository already tracks main for it elsewhere (the expected-callers list). Under the owner threat model, the only actors are the owner, its bots, agents and Apps. Unpinned-ref hygiene is zizmor's advisory lane, so I don't report it again here.
  • Trust controls. Neither file is a trust control, a hold path or a kill switch input. Nothing here widens who is trusted, what a token can do, or what untrusted text reaches a lane.
  • Plugin manifests and instruction surfaces. The diff touches neither.

Cost. Nothing in this change can bill the owner: no new runner class and no billed resource. The added step uses a little more of the existing hosted Actions run time.

critical-findings: 0

@github-actions

Copy link
Copy Markdown

claude-review reviewed e39bf22e2443d3b662777fbccc1c28d609357753: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings.

The PR adds a download-standards@main step to the verify job of release-publish-image.yml. It passes ${{ steps.standards.outputs.path }}/.github/zizmor.yml as zizmor-action's config. It also adds the new caller to the expected-callers list in workflow-pin-metadata.test.cjs.

Checked:

  • Caller inventory test. The test compares the callers after sorting them. release-publish-image.yml sorts after every pr-require-checks.yml entry, so putting the new tuple at the end is correct. The new uses: line matches referenceAtMain, and the file has no SYNC-MANAGED marker, so the test records it as an at-main caller.
  • Release pin check. scripts/Test-ReleasePins.ps1 skips first-party owners (Test-UnpinnedOwner, L355-L358). The first-party ref at @main therefore follows the repository's existing policy. The zizmor version still matches release/dependencies.json.
  • Loosened checks. The in-tree .github/zizmor.yml is a standards-synced managed file (pr-check-managed-files-hosted.yml L69). The new config source is the upstream of that copy, and the pin, version and persona: pedantic are unchanged. Nothing in the diff shows the audit accepting more, so I raise no loosening finding.
  • Security scope. This repository runs a security lane (pr-review-security-hosted.yml). Supply-chain questions about a @main first-party action in the release path belong to that lane and are left out here.

Not verified. The release workflow is triggered by tags, and no PR check runs the new step. The author says so too: their actionlint, node test and pin-check results are claimed and unverified, and the release run is listed as "not run". I could not read the download-standards action, because it lives in ci-workflows. So two things are unconfirmed:

  • that its output is named path;
  • that the path it returns resolves where zizmor-action runs zizmor.

If the action checks out into $GITHUB_WORKSPACE, zizmor's default input . would also audit the standards checkout. The PR says pr-audit-workflows.yml already pairs these two actions. A dry run of the verify job, for example on a pre-release tag, would confirm all of this before the next real release.

No closing issue is linked: the PR body says "No linked issue: phase F reader move", so there are no acceptance criteria to check. The prompt had no loosened_check_verdict: / loosened_check_patterns: lines, so the defaults applied: fail and no consumer entries. There was no loosened_check_decision_record: line either, so the citation requirement was not checked.

Loosened checks would be marked: fail (plugin default; no wrapper settings lines); patterns: 0

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton merged commit c5af163 into main Nov 24, 2026
40 checks passed
@kyle-sexton
kyle-sexton deleted the ci/zizmor-standards-config branch November 24, 2026 10:27
kyle-sexton added a commit to melodic-software/standards that referenced this pull request Nov 24, 2026
Refs: #1101

## Summary

Phase F1 for the `zizmor` and `lychee` components: the sync stops
copying `.github/zizmor.yml` and `lychee.toml` into targets. Their last
copy-only readers now fall back to this repository's root files, which
stay as the canonical sources.

## Fix

- `distribution/sync-manifest.yml`: drop the `zizmor` and `lychee`
component definitions, every target's `managed` entry for them, and
ci-workflows' `locally-owned` `zizmor` entry with its comment. No
component `requires` either one, so no edge needed removing.
`lychee-online-claude-code-plugins` has no `requires` edge and stays:
its reusable falls back to standards' `lychee.toml` (ci-workflows#1212).
Reworded the agent-automations and pr-pipeline-sandbox comments that
cited the removed payloads.
- `components/managed-files-guard/managed-files-guard.yml` and
`-fleet.yml`: drop `.github/zizmor.yml` and `lychee.toml` from `paths`,
which the guard contract test keeps equal to the union of managed
destinations.
- `components/zizmor/README.md`, `components/lychee/README.md`,
`components/lychee-online/README.md`, `distribution/README.md`: say the
configs are read from this repository, not copied, and that a
repository's own file wins. The lychee README's fallback line described
a copy in ci-workflows; `lychee-offline/run.sh` already reads standards.
- Kept `.github/zizmor.yml` (read by ci-workflows
`pr-audit-workflows.yml`) and root `lychee.toml` (read by
`lychee-offline`).

Dropping a component deletes no target copy (`distribution/README.md`,
"Deselection never implies deletion"). The per-target F2 PRs delete the
copies.

Targets that keep a frozen copy until their F2 PR:

- `lychee.toml`: .github, agent-automations, agent-plugins, azure-iac,
ci-runner, ci-workflows, claude-code-account-rotation,
claude-code-plugins, claude-code-proxy, codex-plugins, cursor-plugins,
dotfiles, github-iac, medley, provisioning.
- `.github/zizmor.yml` (managed): ci-runner, claude-code-plugins,
claude-code-proxy, dotfiles, github-iac, medley, pr-pipeline-sandbox,
provisioning. ci-workflows' copy was `locally-owned` and stays its own.

## Verification

- `sync-manifest.sh validate`: `Manifest valid: 53 components, 19
targets`.
- `sync-manifest.sh plan --targets
melodic-software/ci-runner,melodic-software/ci-workflows`: neither
target lists `zizmor` or `lychee`; `dest-paths` for ci-runner has
neither path.
- `harness/shell/run-tests.sh` on `managed-files-guard.test.sh`,
`distribution/sync-manifest.test.sh`,
`components/zizmor/zizmor.test.sh`, `components/lychee/lychee.test.sh`:
4 passed, 0 failed, 0 skipped.

## Related

- melodic-software/ci-runner#615: image-release zizmor passes the
standards config.
- melodic-software/ci-workflows#1212: the online link check falls back
to standards' `lychee.toml`.
- #1123: the same retirement for `runner-policy-contract`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
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