From afd3abb1e53a93bb324e96dc813b6ae980506635 Mon Sep 17 00:00:00 2001 From: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> Date: Thu, 5 Nov 2026 17:59:23 -0500 Subject: [PATCH 1/3] ci: run zizmor on workflow changes in pull requests Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 814511398..c668487f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,30 @@ jobs: - run: npm run test:run -- --coverage - run: npm run build + # Shared workflow-safety gate (projectbluefin/actions#674): fail a change + # that gives a job rights it does not use, pastes an expression into a + # shell command, or leaves credentials behind. Same image, threshold and + # flags as projectbluefin/server's lint-actions.yml. + zizmor: + name: Audit GitHub Actions + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + steps: + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + with: + persist-credentials: false + + # The read-only token enables the online audits (impostor commits, + # known-vulnerable actions, ref/version mismatches). + - name: zizmor + uses: docker://ghcr.io/zizmorcore/zizmor:1.31.1@sha256:42d409dbb851d4c5d35a058cf042b828bea1e3f2884378c526eb0974780e18d9 + env: + GH_TOKEN: ${{ github.token }} + with: + args: --format=github --min-severity=medium --min-confidence=medium . + wolves-movie-flow: runs-on: ubuntu-latest permissions: From 52f3b5e08a8cfdb2476625ec157848a24e4556d2 Mon Sep 17 00:00:00 2001 From: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> Date: Thu, 5 Nov 2026 18:33:30 -0500 Subject: [PATCH 2/3] ci: make the Audit GitHub Actions and test jobs pass - preview.yml: cloudflare/pages-action was deleted upstream, so zizmor's online audits could not resolve it and aborted. Switch to its supported replacement, cloudflare/wrangler-action (pinned v4.1.3), running `pages deploy` with the same project and branch, and read the preview URL from its pages-deployment-alias-url / deployment-url outputs. - backCatalogueOrder test: #989 moved the artwork registry to projectbluefin/artwork; accept projectbluefin/ as well as ublue-os/ (bazzite) source repos. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> --- .github/workflows/preview.yml | 10 +++++----- src/tests/backCatalogueOrder.test.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index faff60a73..738f2f178 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -62,18 +62,18 @@ jobs: - name: Deploy to Cloudflare Pages id: deploy - uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1.5.0 + # cloudflare/pages-action was deleted upstream; wrangler-action is its + # supported replacement. The command runs via @actions/exec (no shell). + uses: cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0 # v4.1.3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: ${{ github.event.repository.name }} - directory: dist - branch: ${{ github.event.pull_request.head.ref }} + command: pages deploy dist --project-name=${{ github.event.repository.name }} --branch=${{ github.event.pull_request.head.ref }} - name: Comment preview URL on PR uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 env: - PREVIEW_URL: ${{ steps.deploy.outputs.alias || steps.deploy.outputs.url }} + PREVIEW_URL: ${{ steps.deploy.outputs.pages-deployment-alias-url || steps.deploy.outputs.deployment-url }} with: script: | const marker = '' diff --git a/src/tests/backCatalogueOrder.test.ts b/src/tests/backCatalogueOrder.test.ts index f0a4e7647..7504e295d 100644 --- a/src/tests/backCatalogueOrder.test.ts +++ b/src/tests/backCatalogueOrder.test.ts @@ -199,7 +199,7 @@ describe('artwork-wallpapers registry', () => { expect(['artwork', 'bazzite']).toContain(wallpaper.kind) expect(classifyCuratedSlide(wallpaper.name, wallpaper.title)).toBe(wallpaper.kind) expect(wallpaper.title.trim().length).toBeGreaterThan(0) - expect(wallpaper.sourceRepo).toMatch(/^https:\/\/github\.com\/ublue-os\//) + expect(wallpaper.sourceRepo).toMatch(/^https:\/\/github\.com\/(?:projectbluefin|ublue-os)\//) expect(wallpaper.sourceCommit).toMatch(/^[0-9a-f]{40}$/) expect(wallpaper.sourceLicense).toBe('Apache-2.0') } From 6dca43963beb418b56e80cf863c8e3248c78ad1d Mon Sep 17 00:00:00 2001 From: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> Date: Thu, 5 Nov 2026 18:47:50 -0500 Subject: [PATCH 3/3] ci: make action version comments match their pinned SHAs zizmor's ref-version-mismatch audit flagged the "# v7" / "# v5" comments: those floating tags have moved on, while the pinned SHAs are the exact releases actions/checkout v7.0.0, actions/setup-node v7.0.0 and actions/deploy-pages v5.0.0. Update the comments only; pins unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/copilot-setup-steps.yml | 4 ++-- .github/workflows/deploy.yml | 6 +++--- .github/workflows/images.yml | 2 +- .github/workflows/preview.yml | 4 ++-- .github/workflows/update-content.yml | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c668487f8..cd05270d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,10 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '24' cache: 'npm' @@ -40,7 +40,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false @@ -58,10 +58,10 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '24' cache: 'npm' diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index a662f1f36..092da6acb 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -18,10 +18,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: Set up Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: "24" cache: "npm" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 815bd5eef..4f14f44dc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,7 +30,7 @@ jobs: egress-policy: audit - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - name: Restore live data from cache @@ -64,7 +64,7 @@ jobs: run: git checkout HEAD -- public/experiences/catalogue.json - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '24' cache: 'npm' @@ -80,4 +80,4 @@ jobs: path: './dist' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5 + uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index 6f94e4008..5bf2ace8a 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: # Do not persist the write-capable token into .git/config; the next step # authenticates via the GITHUB_TOKEN input (the API), not git credentials. diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 738f2f178..8916c2d30 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false @@ -49,7 +49,7 @@ jobs: fail-on-cache-miss: false - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '24' cache: 'npm' diff --git a/.github/workflows/update-content.yml b/.github/workflows/update-content.yml index 63a70b13d..8585a8375 100644 --- a/.github/workflows/update-content.yml +++ b/.github/workflows/update-content.yml @@ -25,7 +25,7 @@ jobs: egress-policy: audit - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false @@ -61,7 +61,7 @@ jobs: run: git checkout HEAD -- public/experiences/catalogue.json public/dakota-versions.json - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '24' cache: 'npm'