From f3f0673762d2e6bfd66e075dc14502c9f8731f58 Mon Sep 17 00:00:00 2001 From: Jey Burrows <175012+jeyrb@users.noreply.github.com> Date: Sun, 22 Nov 2026 09:06:51 +0000 Subject: [PATCH] ci: release workflow patterns, zizmor clean (hq-private#136) Tag-driven immutable releases with notes from the changelog, every action pinned by hash, least-privilege tokens. See rhizomatics/hq#20. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/admin-auto-assign.yml | 4 ++-- .../workflows/admin-dependabot-automerge.yml | 2 +- .github/workflows/admin-dependency-review.yml | 2 +- .github/workflows/admin-labels.yml | 2 +- .github/workflows/admin-zizmor.yml | 20 +++++++++++++++++++ .github/zizmor.yml | 8 ++++++++ 6 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/admin-zizmor.yml create mode 100644 .github/zizmor.yml diff --git a/.github/workflows/admin-auto-assign.yml b/.github/workflows/admin-auto-assign.yml index 5e60576..ec0f51c 100644 --- a/.github/workflows/admin-auto-assign.yml +++ b/.github/workflows/admin-auto-assign.yml @@ -5,7 +5,7 @@ on: issues: types: [opened, reopened] # pull_request_target so fork PRs get a writable token; the called workflow never runs PR code. - pull_request_target: + pull_request_target: # zizmor: ignore[dangerous-triggers] only assigns, never checks out the PR types: [opened, reopened] # Nothing by default; each job grants only what it needs (OpenSSF Scorecard Token-Permissions). @@ -16,4 +16,4 @@ jobs: permissions: issues: write pull-requests: write - uses: rhizomatics/hq/.github/workflows/reusable-auto-assign.yml@5c22e38809c2209b38d5ed13e2a8ea01b9c2d96e # v1.0.0 + uses: rhizomatics/hq/.github/workflows/reusable-auto-assign.yml@0b71f7ee4e19ea72a529b96395fa81eeb641a590 # v1.0.1 diff --git a/.github/workflows/admin-dependabot-automerge.yml b/.github/workflows/admin-dependabot-automerge.yml index 258b481..63f120c 100644 --- a/.github/workflows/admin-dependabot-automerge.yml +++ b/.github/workflows/admin-dependabot-automerge.yml @@ -13,4 +13,4 @@ jobs: permissions: contents: write pull-requests: write - uses: rhizomatics/hq/.github/workflows/reusable-dependabot-automerge.yml@5c22e38809c2209b38d5ed13e2a8ea01b9c2d96e # v1.0.0 + uses: rhizomatics/hq/.github/workflows/reusable-dependabot-automerge.yml@0b71f7ee4e19ea72a529b96395fa81eeb641a590 # v1.0.1 diff --git a/.github/workflows/admin-dependency-review.yml b/.github/workflows/admin-dependency-review.yml index d8e8685..dadba01 100644 --- a/.github/workflows/admin-dependency-review.yml +++ b/.github/workflows/admin-dependency-review.yml @@ -13,4 +13,4 @@ jobs: permissions: contents: read pull-requests: write - uses: rhizomatics/hq/.github/workflows/reusable-dependency-review.yml@5c22e38809c2209b38d5ed13e2a8ea01b9c2d96e # v1.0.0 + uses: rhizomatics/hq/.github/workflows/reusable-dependency-review.yml@0b71f7ee4e19ea72a529b96395fa81eeb641a590 # v1.0.1 diff --git a/.github/workflows/admin-labels.yml b/.github/workflows/admin-labels.yml index 09b4736..13dc18c 100644 --- a/.github/workflows/admin-labels.yml +++ b/.github/workflows/admin-labels.yml @@ -17,4 +17,4 @@ jobs: permissions: issues: write contents: read - uses: rhizomatics/hq/.github/workflows/reusable-labels.yml@5c22e38809c2209b38d5ed13e2a8ea01b9c2d96e # v1.0.0 + uses: rhizomatics/hq/.github/workflows/reusable-labels.yml@0b71f7ee4e19ea72a529b96395fa81eeb641a590 # v1.0.1 diff --git a/.github/workflows/admin-zizmor.yml b/.github/workflows/admin-zizmor.yml new file mode 100644 index 0000000..5408666 --- /dev/null +++ b/.github/workflows/admin-zizmor.yml @@ -0,0 +1,20 @@ +# Managed by rhizomatics/hq (admin/sync-admin.sh) - edit there, not here. +name: zizmor + +on: + push: + branches: [main] + pull_request: + schedule: + - cron: "41 5 * * 2" + +# Nothing by default; each job grants only what it needs (OpenSSF Scorecard Token-Permissions). +permissions: {} + +jobs: + zizmor: + permissions: + contents: read + security-events: write + actions: read + uses: rhizomatics/hq/.github/workflows/reusable-zizmor.yml@0b71f7ee4e19ea72a529b96395fa81eeb641a590 # v1.0.1 diff --git a/.github/zizmor.yml b/.github/zizmor.yml new file mode 100644 index 0000000..5481152 --- /dev/null +++ b/.github/zizmor.yml @@ -0,0 +1,8 @@ +# Managed by rhizomatics/hq (admin/sync-admin.sh) - edit there, not here. +# zizmor configuration shared by every repo (policies/release_workflows.md). A repo-specific exception goes +# inline, on the line zizmor flags, as `# zizmor: ignore[] `, never here. +rules: + self-repository: + # Style only: prefers GitHub's new `$/` self-repository syntax to `./.github/workflows/...` for local + # reusable workflows. Off until `$/` is confirmed for reusable workflows as well as actions. + disable: true