Add zizmor checks on CI. (#5161)

* Add zizmor checks on CI.

* Fix zizmor credentials warnings

* Add persist-credentials: false to action-cached-lfs-checkout too.

* Add empty permissions by default.

* Ignore pull_request_target failure and add a warning.
This commit is contained in:
Doug
2026-03-05 13:54:51 +00:00
committed by GitHub
parent 0ab6458e4e
commit 51194c09e2
15 changed files with 100 additions and 24 deletions
+6 -2
View File
@@ -6,6 +6,8 @@ on:
workflow_dispatch:
permissions: {}
jobs:
integration_tests:
name: Integration Tests
@@ -18,7 +20,9 @@ jobs:
cancel-in-progress: false
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup environment
run:
@@ -32,7 +36,7 @@ jobs:
INTEGRATION_TESTS_PASSWORD: ${{ secrets.INTEGRATION_TESTS_PASSWORD }}
- name: Archive artifacts
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
# We only care about artefacts if the tests fail
if: failure()
with: