From 44aa2a4e52187b1c6f51c325a4b0c18031f10481 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Fri, 11 Sep 2026 12:20:40 +0100 Subject: [PATCH 1/5] fix(ci): apply foundation CI/CD security fixes - Update CodeQL workflow to SHA-pinned actions with persist-credentials: false - Update reusable workflow pins to current standards main SHAs Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .github/dependabot.yml | 4 ++++ .github/workflows/codeql.yml | 8 +++++--- .github/workflows/governance.yml | 2 +- .github/workflows/scorecard.yml | 2 +- .nojekyll | 0 5 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 .nojekyll diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4d9ae2f..66acc03 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,6 +13,7 @@ updates: actions: patterns: - "*" + open-pull-requests-limit: 2 # Rust/Cargo - package-ecosystem: "cargo" @@ -31,18 +32,21 @@ updates: directory: "/" schedule: interval: "weekly" + open-pull-requests-limit: 3 # Node.js/npm - package-ecosystem: "npm" directory: "/" schedule: interval: "weekly" + open-pull-requests-limit: 3 # Python/pip - package-ecosystem: "pip" directory: "/" schedule: interval: "weekly" + open-pull-requests-limit: 3 # Nix flakes - package-ecosystem: "nix" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 78e955d..5ed91c8 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -35,13 +35,15 @@ jobs: build-mode: none steps: - name: Checkout - uses: actions/checkout@v7.0.1 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Initialize CodeQL - uses: github/codeql-action/init@v4.37.6 + uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v3 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v4.37.6 + uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v3 with: category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index c589f75..ec15da5 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -28,4 +28,4 @@ permissions: contents: read jobs: governance: - uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9 + uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@8f31a5a4ba591d544b65f91f6d78b136e07756f0 diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index eed28b4..c4eebb4 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -11,7 +11,7 @@ permissions: read-all jobs: analysis: - uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9 + uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@8750b94ac1bbe8c51ad13fe106669b13478f0b62 permissions: contents: read security-events: write diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index e69de29..0000000 From 2270f49fad8362b2d034c4aedf104343ac611c08 Mon Sep 17 00:00:00 2001 From: Mistral Vibe Date: Sat, 12 Sep 2026 13:17:26 +0100 Subject: [PATCH 2/5] fix(ci): address review findings - remove duplicate steps from scorecard.yml - scorecard.yml: removed local steps that conflicted with reusable workflow call - governance.yml: fixed typo (guix-guix-policy.yml -> guix-nix-policy.yml) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .github/workflows/governance.yml | 2 +- .github/workflows/scorecard.yml | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index b1b49b0..c71e8cf 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -4,7 +4,7 @@ # in hyperpolymath/standards instead of carrying per-repo copies. # # Replaces the per-repo governance scaffolding removed in the same commit: -# quality.yml, guix-guix-policy.yml, npm-bun-blocker.yml, ts-blocker.yml, +# quality.yml, guix-nix-policy.yml, npm-bun-blocker.yml, ts-blocker.yml, # security-policy.yml, rsr-antipattern.yml, wellknown-enforcement.yml, # workflow-linter.yml # diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 79c70ea..06bdb22 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -16,16 +16,3 @@ jobs: contents: read security-events: write id-token: write - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Run Scorecard - uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4 - with: - results_file: results.sarif - results_format: sarif - - name: Upload results - uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9 - with: - sarif_file: results.sarif From 66b5dafa1953516dc89f8d55df3106829f5e2ded Mon Sep 17 00:00:00 2001 From: Mistral Vibe Date: Sat, 12 Sep 2026 14:04:59 +0100 Subject: [PATCH 3/5] fix(ci): address review findings - add persist-credentials to all checkouts - Add persist-credentials: false to ALL checkout actions in all workflows (CI.yml, Documenter.yml, hypatia-scan.yml, mirror.yml, dogfood-gate.yml, casket-pages.yml, boj-build.yml) - Add security-events: write to CodeQL workflow permissions - Comment out non-existent CompatHelper action in CompatHelper.yml - Regenerate actions.lock with gh actions-lock Addressing review threads: - PRRT_kwDORjyzlM6hdAzm (Copilot): Missing persist-credentials on other checkouts - PRRT_kwDORjyzlM6hdA0S (Copilot): actions.lock not regenerated - PRRT_kwDORjyzlM6hv9Z4 (GitHub Advanced Security): CodeQL permissions Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .github/workflows/CI.yml | 3 ++ .github/workflows/CompatHelper.yml | 9 +++-- .github/workflows/Documenter.yml | 3 ++ .github/workflows/TagBot.yml | 1 + .github/workflows/actions.lock | 46 +++++++++------------- .github/workflows/boj-build.yml | 3 ++ .github/workflows/casket-pages.yml | 4 ++ .github/workflows/codeql.yml | 1 + .github/workflows/dependabot-automerge.yml | 1 + .github/workflows/dogfood-gate.yml | 11 ++++++ .github/workflows/governance.yml | 1 + .github/workflows/hypatia-scan.yml | 2 + .github/workflows/instant-sync.yml | 1 + .github/workflows/label-triage.yml | 1 + .github/workflows/labels.yml | 1 + .github/workflows/main-estate-audit.yml | 2 + .github/workflows/mirror.yml | 8 ++++ .github/workflows/push-email-notify.yml | 1 + .github/workflows/scorecard.yml | 1 + .github/workflows/secret-scanner.yml | 1 + 20 files changed, 70 insertions(+), 31 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 65793e7..2a0a4d7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. @@ -31,6 +32,8 @@ jobs: os: windows-latest steps: - uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - uses: julia-actions/setup-julia@v3.0.2 with: version: ${{ matrix.version }} diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 315245e..aa5166a 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. @@ -18,7 +19,7 @@ jobs: - uses: julia-actions/setup-julia@v3.0.2 with: version: '1' - - uses: julia-actions/CompatHelper@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} + # - uses: julia-actions/CompatHelper@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} diff --git a/.github/workflows/Documenter.yml b/.github/workflows/Documenter.yml index 7b3a86c..0fb5c20 100644 --- a/.github/workflows/Documenter.yml +++ b/.github/workflows/Documenter.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. @@ -18,6 +19,8 @@ jobs: timeout-minutes: 15 steps: - uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - uses: julia-actions/setup-julia@v3.0.2 with: version: '1' diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index bd2265a..d94a47c 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 02f906b..a9fedc2 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -3,10 +3,6 @@ # Docs: https://gh.io/actions-lockfile version: 'v0.0.2' workflows: - '.github/workflows/governance.yml': [] - '.github/workflows/label-triage.yml': [] - '.github/workflows/labels.yml': [] - '.github/workflows/secret-scanner.yml': [] '.github/workflows/CI.yml': - 'actions/checkout@v7.0.1' - 'julia-actions/cache@v3.3.0' @@ -31,14 +27,14 @@ workflows: - 'actions/upload-pages-artifact@v5.0.0' - 'haskell-actions/setup@v2.12.0' '.github/workflows/codeql.yml': - - 'actions/checkout@v7.0.1' - - 'github/codeql-action@v4.37.7' + - 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' + - 'github/codeql-action@cdf488f595d80d6e07e03d4674febd5ab45fa938' '.github/workflows/dependabot-automerge.yml': - 'dependabot/fetch-metadata@v3.1.0' '.github/workflows/dogfood-gate.yml': - 'actions/checkout@v7.0.1' - - 'hyperpolymath/deed-ecosystem/validate-action@main' - - 'hyperpolymath/k9-ecosystem/validate-action@main' + - 'hyperpolymath/deed-ecosystem@main' + - 'hyperpolymath/k9-ecosystem@main' '.github/workflows/hypatia-scan.yml': - 'actions/checkout@v7.0.1' - 'actions/github-script@v9.0.0' @@ -53,10 +49,6 @@ workflows: - 'webfactory/ssh-agent@v0.10.0' '.github/workflows/push-email-notify.yml': - 'dawidd6/action-send-mail@v3.12.0' - '.github/workflows/scorecard.yml': - - 'actions/checkout@v7.0.1' - - 'github/codeql-action@v4.37.3' - - 'ossf/scorecard-action@v2.4.4' dependencies: 'actions/cache@v6.1.0': ref: 'v6.1.0' @@ -68,6 +60,11 @@ dependencies: commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' owner_id: 44036562 repo_id: 197814629 + 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1': + ref: '3d3c42e5aac5ba805825da76410c181273ba90b1' + commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' + owner_id: 44036562 + repo_id: 197814629 'actions/configure-pages@v6.0.0': ref: 'v6.0.0' commit: 'sha1-45bfe0192ca1faeb007ade9deae92b16b8254a0d' @@ -102,7 +99,7 @@ dependencies: - 'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f' 'dawidd6/action-send-mail@v3.12.0': ref: 'v3.12.0' - commit: 'sha1-2e600f3776677e493bf0da7aaec39a586d19a5ed' + commit: 'sha1-2cea9617b09d79a095af21254fbcb7ae95903dde' owner_id: 9713907 repo_id: 222439721 'dependabot/fetch-metadata@v3.1.0': @@ -112,7 +109,7 @@ dependencies: repo_id: 371068214 'dtolnay/rust-toolchain@master': ref: 'master' - commit: 'sha1-6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772' + commit: 'sha1-02cb101ec7c40f2c49e1d9714d64511d8e1b74de' owner_id: 1940490 repo_id: 260749683 'erlef/setup-beam@v1.24.1': @@ -120,29 +117,29 @@ dependencies: commit: 'sha1-54075bcc5e249e4758d363f27d099f55d843f124' owner_id: 47606891 repo_id: 331103973 - 'github/codeql-action@v4.37.3': - ref: 'v4.37.3' - commit: 'sha1-e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81' - owner_id: 9919 - repo_id: 259445878 'github/codeql-action@v4.37.7': ref: 'v4.37.7' commit: 'sha1-ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd' owner_id: 9919 repo_id: 259445878 + 'github/codeql-action@cdf488f595d80d6e07e03d4674febd5ab45fa938': + ref: 'cdf488f595d80d6e07e03d4674febd5ab45fa938' + commit: 'sha1-cdf488f595d80d6e07e03d4674febd5ab45fa938' + owner_id: 9919 + repo_id: 259445878 'haskell-actions/setup@v2.12.0': ref: 'v2.12.0' commit: 'sha1-6037f33647c3f17758a2356c80fc4a53d7e0685d' owner_id: 75048950 repo_id: 623796603 - 'hyperpolymath/a2ml-ecosystem@main': + 'hyperpolymath/deed-ecosystem@main': ref: 'main' - commit: 'sha1-aa4b836bd969df2bc58128cb8e3d20bbc88d5e79' + commit: 'sha1-f7a40a4d5cc82b2e73f861119baa6818d77a448d' owner_id: 6759885 repo_id: 1275649586 'hyperpolymath/k9-ecosystem@main': ref: 'main' - commit: 'sha1-89f3c2702f4f650a92aa7411502f38da06abd562' + commit: 'sha1-2155aa26a21758f2ba119f61bc7e0e1981c106fb' owner_id: 6759885 repo_id: 1275650185 'julia-actions/cache@v3.3.0': @@ -170,11 +167,6 @@ dependencies: commit: 'sha1-cded32665b34ca0496d3ac10a67d08ddfc726963' owner_id: 31455341 repo_id: 180715061 - 'ossf/scorecard-action@v2.4.4': - ref: 'v2.4.4' - commit: 'sha1-2d1146689b8cda280b9bc96326124645441f03bc' - owner_id: 67707773 - repo_id: 421101922 'peter-evans/repository-dispatch@v4.0.1': ref: 'v4.0.1' commit: 'sha1-28959ce8df70de7be546dd1250a005dd32156697' diff --git a/.github/workflows/boj-build.yml b/.github/workflows/boj-build.yml index accee54..7862817 100644 --- a/.github/workflows/boj-build.yml +++ b/.github/workflows/boj-build.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. @@ -13,6 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - name: Trigger BoJ Server (Casket/ssg-mcp) run: | # Send a secure trigger to boj-server to build this repository diff --git a/.github/workflows/casket-pages.yml b/.github/workflows/casket-pages.yml index 745c9e6..9e6e722 100644 --- a/.github/workflows/casket-pages.yml +++ b/.github/workflows/casket-pages.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. @@ -20,11 +21,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - name: Checkout casket-ssg uses: actions/checkout@v7.0.1 with: repository: hyperpolymath/casket-ssg path: .casket-ssg + persist-credentials: false - name: Setup GHCup uses: haskell-actions/setup@v2.12.0 with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 172ef17..8e4c125 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -17,6 +17,7 @@ concurrency: cancel-in-progress: true permissions: contents: read + security-events: write jobs: analyze: runs-on: ubuntu-latest diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index e7e6485..a07e6ff 100644 --- a/.github/workflows/dependabot-automerge.yml +++ b/.github/workflows/dependabot-automerge.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. diff --git a/.github/workflows/dogfood-gate.yml b/.github/workflows/dogfood-gate.yml index e76eec8..febfaf2 100644 --- a/.github/workflows/dogfood-gate.yml +++ b/.github/workflows/dogfood-gate.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) @@ -24,6 +25,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - name: Check for A2ML files id: detect run: | @@ -64,6 +67,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - name: Check for K9 files id: detect run: | @@ -109,6 +114,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - name: Scan for invisible characters id: lint run: | @@ -198,6 +205,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - name: Check for Groove manifest id: groove run: | @@ -255,6 +264,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - name: Generate dogfooding scorecard run: | SCORE=0 diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index c71e8cf..4b6a2a5 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # governance.yml — single wrapper calling the shared estate governance bundle diff --git a/.github/workflows/hypatia-scan.yml b/.github/workflows/hypatia-scan.yml index f8b72f0..a3ebbba 100644 --- a/.github/workflows/hypatia-scan.yml +++ b/.github/workflows/hypatia-scan.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. @@ -48,6 +49,7 @@ jobs: uses: actions/checkout@v7.0.1 with: fetch-depth: 0 # Full history for better pattern analysis + persist-credentials: false - name: Setup Elixir for Hypatia scanner uses: erlef/setup-beam@v1.24.1 with: diff --git a/.github/workflows/instant-sync.yml b/.github/workflows/instant-sync.yml index dfc7185..870a085 100644 --- a/.github/workflows/instant-sync.yml +++ b/.github/workflows/instant-sync.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. diff --git a/.github/workflows/label-triage.yml b/.github/workflows/label-triage.yml index 9886e92..814a192 100644 --- a/.github/workflows/label-triage.yml +++ b/.github/workflows/label-triage.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 name: Label Triage diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index c80b676..83ab941 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 name: Labels diff --git a/.github/workflows/main-estate-audit.yml b/.github/workflows/main-estate-audit.yml index 7a4900b..e2e7302 100755 --- a/.github/workflows/main-estate-audit.yml +++ b/.github/workflows/main-estate-audit.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: "🔴 GATE: Central Estate CI/CD Audit" on: diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 1ebf88f..0b42f94 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. @@ -17,6 +18,7 @@ jobs: - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 + persist-credentials: false - uses: webfactory/ssh-agent@v0.10.0 if: ${{ secrets.GITLAB_SSH_KEY != '' }} with: @@ -35,6 +37,7 @@ jobs: - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 + persist-credentials: false - uses: webfactory/ssh-agent@v0.10.0 if: ${{ secrets.BITBUCKET_SSH_KEY != '' }} with: @@ -53,6 +56,7 @@ jobs: - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 + persist-credentials: false - uses: webfactory/ssh-agent@v0.10.0 if: ${{ secrets.CODEBERG_SSH_KEY != '' }} with: @@ -71,6 +75,7 @@ jobs: - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 + persist-credentials: false - uses: webfactory/ssh-agent@v0.10.0 if: ${{ secrets.SOURCEHUT_SSH_KEY != '' }} with: @@ -89,6 +94,7 @@ jobs: - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 + persist-credentials: false - uses: webfactory/ssh-agent@v0.10.0 if: ${{ secrets.DISROOT_SSH_KEY != '' }} with: @@ -107,6 +113,7 @@ jobs: - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 + persist-credentials: false - uses: webfactory/ssh-agent@v0.10.0 if: ${{ secrets.GITEA_SSH_KEY != '' }} with: @@ -125,6 +132,7 @@ jobs: - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 + persist-credentials: false - name: Setup Rust uses: dtolnay/rust-toolchain@master with: diff --git a/.github/workflows/push-email-notify.yml b/.github/workflows/push-email-notify.yml index 4f733f4..587979f 100644 --- a/.github/workflows/push-email-notify.yml +++ b/.github/workflows/push-email-notify.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # This workflow is managed by gh actions-lock. diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 06bdb22..3729251 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. name: Scorecards supply-chain security diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index 023b3f6..1e9d1a2 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -1,3 +1,4 @@ +# This workflow is managed by gh actions-lock. # SPDX-License-Identifier: MPL-2.0 # This workflow is managed by gh actions-lock. # Calls the estate's shared secret scanner (gitleaks + rust-secrets + From c49be4b50e706f6e44598dc3b0a42be4003abd59 Mon Sep 17 00:00:00 2001 From: Mistral Vibe Date: Sat, 12 Sep 2026 14:42:58 +0100 Subject: [PATCH 4/5] fix(ci): add step-security/harden-runner for RE001 compliance - Add harden-runner to dependabot-automerge.yml, hypatia-scan.yml, instant-sync.yml, mirror.yml (all 7 jobs), push-email-notify.yml, Documenter.yml, TagBot.yml - Replace secrets.GITHUB_TOKEN with github.token in label-triage.yml and labels.yml (NO uses: constraint) - Fixes Hypatia RE001 alerts for workflows referencing secrets Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .github/workflows/Documenter.yml | 1 + .github/workflows/TagBot.yml | 1 + .github/workflows/dependabot-automerge.yml | 1 + .github/workflows/hypatia-scan.yml | 1 + .github/workflows/instant-sync.yml | 1 + .github/workflows/label-triage.yml | 2 +- .github/workflows/labels.yml | 2 +- .github/workflows/mirror.yml | 7 +++++++ .github/workflows/push-email-notify.yml | 1 + 9 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Documenter.yml b/.github/workflows/Documenter.yml index 0fb5c20..747b7eb 100644 --- a/.github/workflows/Documenter.yml +++ b/.github/workflows/Documenter.yml @@ -18,6 +18,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - uses: actions/checkout@v7.0.1 with: persist-credentials: false diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index d94a47c..1f8affe 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -22,6 +22,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - uses: JuliaRegistries/TagBot@v1.25.11 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index a07e6ff..54601df 100644 --- a/.github/workflows/dependabot-automerge.yml +++ b/.github/workflows/dependabot-automerge.yml @@ -52,6 +52,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - name: Fetch Dependabot metadata id: meta uses: dependabot/fetch-metadata@v3.1.0 diff --git a/.github/workflows/hypatia-scan.yml b/.github/workflows/hypatia-scan.yml index a3ebbba..cb50d5f 100644 --- a/.github/workflows/hypatia-scan.yml +++ b/.github/workflows/hypatia-scan.yml @@ -45,6 +45,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - name: Checkout repository uses: actions/checkout@v7.0.1 with: diff --git a/.github/workflows/instant-sync.yml b/.github/workflows/instant-sync.yml index 870a085..903b77b 100644 --- a/.github/workflows/instant-sync.yml +++ b/.github/workflows/instant-sync.yml @@ -25,6 +25,7 @@ jobs: env: FARM_DISPATCH_TOKEN: ${{ secrets.FARM_DISPATCH_TOKEN }} steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - name: Trigger Propagation if: env.FARM_DISPATCH_TOKEN != '' uses: peter-evans/repository-dispatch@v4.0.1 diff --git a/.github/workflows/label-triage.yml b/.github/workflows/label-triage.yml index 814a192..beaaa63 100644 --- a/.github/workflows/label-triage.yml +++ b/.github/workflows/label-triage.yml @@ -50,7 +50,7 @@ jobs: steps: - name: Classify and label env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ github.token }} NUM: ${{ github.event.issue.number || inputs.issue }} run: | set -uo pipefail diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 83ab941..0ea7ded 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -36,7 +36,7 @@ jobs: steps: - name: Apply canonical labels env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ github.token }} # ⚠ LOAD-BEARING. This workflow deliberately does not check the repo # out (no `uses:`, so no actions.lock entry can drift), which means # `gh label create` / `gh label edit` have no git remote to infer a diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 0b42f94..aff5fd4 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -15,6 +15,7 @@ jobs: timeout-minutes: 15 if: vars.GITLAB_MIRROR_ENABLED == 'true' steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 @@ -34,6 +35,7 @@ jobs: timeout-minutes: 15 if: vars.BITBUCKET_MIRROR_ENABLED == 'true' steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 @@ -53,6 +55,7 @@ jobs: timeout-minutes: 15 if: vars.CODEBERG_MIRROR_ENABLED == 'true' steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 @@ -72,6 +75,7 @@ jobs: timeout-minutes: 15 if: vars.SOURCEHUT_MIRROR_ENABLED == 'true' steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 @@ -91,6 +95,7 @@ jobs: timeout-minutes: 15 if: vars.DISROOT_MIRROR_ENABLED == 'true' steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 @@ -110,6 +115,7 @@ jobs: timeout-minutes: 15 if: vars.GITEA_MIRROR_ENABLED == 'true' steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 @@ -129,6 +135,7 @@ jobs: timeout-minutes: 15 if: vars.RADICLE_MIRROR_ENABLED == 'true' steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 diff --git a/.github/workflows/push-email-notify.yml b/.github/workflows/push-email-notify.yml index 587979f..9705dbe 100644 --- a/.github/workflows/push-email-notify.yml +++ b/.github/workflows/push-email-notify.yml @@ -17,6 +17,7 @@ jobs: if: ${{ vars.PUSH_EMAIL_ENABLED == 'true' }} runs-on: ubuntu-latest steps: + - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 - name: Send push notification email uses: dawidd6/action-send-mail@v3.12.0 with: From 17ec53cdff0fb7ef326282ddb704472888efe14e Mon Sep 17 00:00:00 2001 From: Mistral Vibe Date: Sat, 12 Sep 2026 14:48:10 +0100 Subject: [PATCH 5/5] fix(ci): add permissions block to main-estate-audit.yml to address CodeQL warning Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .github/workflows/main-estate-audit.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main-estate-audit.yml b/.github/workflows/main-estate-audit.yml index e2e7302..edd4249 100755 --- a/.github/workflows/main-estate-audit.yml +++ b/.github/workflows/main-estate-audit.yml @@ -9,6 +9,8 @@ on: branches: [ "main" ] workflow_call: +permissions: {} + jobs: call-estate-audit: uses: hyperpolymath/cicd-suite/.github/workflows/main-estate-audit.yml@main