From 4a4b48b0134befbc55a0be736759db27d058edd4 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Mon, 11 May 2026 16:54:55 -0500 Subject: [PATCH 1/2] Apply pinning to GitHub Actions --- .github/dependabot.yml | 16 ++++++++++++++++ .github/workflows/ci.yml | 4 +++- .github/workflows/release.yml | 4 +++- .github/zizmor.yml | 5 +++++ 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/zizmor.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..586a818 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +version: 2 + +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + actions: + patterns: ["*"] + ignore: + - dependency-name: "DeterminateSystems/*" + commit-message: + prefix: ci diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 544491d..771ec0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,9 @@ jobs: id-token: "write" contents: "read" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - uses: ./. - run: nix develop -c typos if: success() || failure() diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b0aa906..2bc12a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,9 @@ jobs: shorttag=$(echo "$VERSION" | cut -d'.' -f1) echo "shorttag=$shorttag" >> "$GITHUB_OUTPUT" - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Create the short tag env: SHORTTAG: ${{ steps.check_tag.outputs.shorttag }} diff --git a/.github/zizmor.yml b/.github/zizmor.yml new file mode 100644 index 0000000..abdc40b --- /dev/null +++ b/.github/zizmor.yml @@ -0,0 +1,5 @@ +rules: + unpinned-uses: + config: + policies: + DeterminateSystems/*: ref-pin From 12620061c689cb48541da2208d2625c5bc734e3b Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Thu, 28 May 2026 16:50:52 -0700 Subject: [PATCH 2/2] Add zizmor checking workflow --- .github/workflows/zizmor.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/zizmor.yml diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 0000000..e6a3c98 --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,25 @@ +name: zizmor + +on: + push: + branches: + - main + pull_request: + +jobs: + zizmor: + runs-on: ubuntu-latest + permissions: + security-events: write + contents: read + actions: read + steps: + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Run zizmor + uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6 + with: + config: .github/zizmor.yml