Skip to content

Commit 3ebf6b8

Browse files
mahlau-flexyaugenst-flex
authored andcommitted
ci: added zizmor static security check
1 parent 7b3c66d commit 3ebf6b8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/tidy3d-python-client-tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,20 @@ jobs:
160160
- name: Run ruff check
161161
run: ruff check tidy3d
162162

163+
zizmor:
164+
name: Run zizmor 🌈
165+
runs-on: ubuntu-latest
166+
permissions:
167+
security-events: write
168+
steps:
169+
- name: Checkout repository
170+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
171+
with:
172+
persist-credentials: false
173+
174+
- name: Run zizmor 🌈
175+
uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0
176+
163177
lint-branch-name:
164178
needs: determine-test-scope
165179
runs-on: ubuntu-latest
@@ -563,7 +577,7 @@ jobs:
563577
(( needs.determine-test-scope.outputs.pr_approval_state == 'true' ) &&
564578
( needs.determine-test-scope.outputs.local_tests == 'true' ) ||
565579
( needs.determine-test-scope.outputs.remote_tests == 'true' ))
566-
needs: [local-tests, remote-tests, lint, verify-schema-change, lint-commit-messages, lint-branch-name]
580+
needs: [local-tests, remote-tests, lint, verify-schema-change, lint-commit-messages, lint-branch-name, zizmor]
567581
runs-on: ubuntu-latest
568582
steps:
569583
- name: check-passing-remote-tests
@@ -588,5 +602,8 @@ jobs:
588602
elif [[ "${{ github.event_name }}" == 'pull_request' && "${{ needs.lint-branch-name.result }}" != 'success' ]]; then
589603
echo "❌ Linting of branch name failed."
590604
exit 1
605+
elif [[ "${{ needs.zizmor.result }}" != 'success' ]]; then
606+
echo "❌ Static check of github actions with zizmor failed."
607+
exit 1
591608
fi
592609
echo "✅ All required test jobs passed!"

0 commit comments

Comments
 (0)