Skip to content

Commit cd76cef

Browse files
committed
feat: static analysis job for gha workflows
1 parent 6e9aa59 commit cd76cef

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/static_analysis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,30 @@ jobs:
9595
- name: Run dart custom_lint
9696
run: dart run custom_lint
9797
working-directory: ./mobile
98+
99+
zizmor:
100+
name: zizmor
101+
runs-on: ubuntu-latest
102+
permissions:
103+
security-events: write
104+
contents: read
105+
actions: read
106+
steps:
107+
- name: Checkout repository
108+
uses: actions/checkout@v4
109+
with:
110+
persist-credentials: false
111+
112+
- name: Install the latest version of uv
113+
uses: astral-sh/setup-uv@v5
114+
115+
- name: Run zizmor 🌈
116+
run: uvx zizmor --format=sarif . > results.sarif
117+
env:
118+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119+
120+
- name: Upload SARIF file
121+
uses: github/codeql-action/upload-sarif@v3
122+
with:
123+
sarif_file: results.sarif
124+
category: zizmor

0 commit comments

Comments
 (0)