From 7614110f669450cf083a88b212cf2292d018edf5 Mon Sep 17 00:00:00 2001 From: alex-mextner <111590326+alex-mextner@users.noreply.github.com> Date: Fri, 20 Nov 2026 19:06:41 +0100 Subject: [PATCH] ci: pin actions and restrict workflow token defaults (#980) --- .github/workflows/notify-private.yml | 7 +++++-- .github/workflows/pr-checklist-gate.yml | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/notify-private.yml b/.github/workflows/notify-private.yml index 335b88a4..094621ad 100644 --- a/.github/workflows/notify-private.yml +++ b/.github/workflows/notify-private.yml @@ -10,11 +10,14 @@ on: push: branches: [main] +permissions: + contents: read + jobs: dispatch: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 with: fetch-depth: 1 @@ -33,7 +36,7 @@ jobs: - name: Send repository_dispatch if: steps.check.outputs.skip != 'true' - uses: peter-evans/repository-dispatch@v3 + uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 with: token: ${{ secrets.PRIVATE_REPO_DISPATCH_TOKEN }} repository: hyperide/hyper-saas diff --git a/.github/workflows/pr-checklist-gate.yml b/.github/workflows/pr-checklist-gate.yml index d93c9552..94040376 100644 --- a/.github/workflows/pr-checklist-gate.yml +++ b/.github/workflows/pr-checklist-gate.yml @@ -40,10 +40,10 @@ jobs: # BASE branch (trusted main), NOT the PR head. We deliberately do NOT # set `ref: github.event.pull_request.head.sha`: that would run # PR-controlled parser code and defeat the whole point of this trigger. - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 - name: Verify acceptance-criteria checkboxes are all checked - uses: actions/github-script@v7 + uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b with: script: | // Import the SAME parser the self-check test