Skip to content

Commit 40a9999

Browse files
authored
[CI] Add zizmor workflow (#20437)
Zizmor is a static analysis tool for GitHub Actions. See https://github.com/zizmorcore/zizmor This is necessary to improve the security of the repository and releases. Analysis results can be found in the Security tab.
1 parent a98a72d commit 40a9999

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/sycl-zizmor.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Zizmor
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
# Although workflow files (.yml) should only be placed in the
7+
# .github/workflows directory, composite actions may be placed anywhere.
8+
# Here in intel/llvm composite actions are placed in the devops/actions
9+
# directory. In llvm/llvm-project composite actions are placed right in the
10+
# .github/workflows directory. Therefore limiting the scanning to only these
11+
# directories. BUT we may consider scanning the entire repository to enhance
12+
# security.
13+
paths:
14+
- '.github/workflows/**/*.yml'
15+
- 'devops/actions/**/*.yml'
16+
17+
permissions: {}
18+
19+
jobs:
20+
zizmor:
21+
name: Run zizmor
22+
runs-on: ubuntu-latest
23+
permissions:
24+
security-events: write
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v5
28+
with:
29+
sparse-checkout-cone-mode: false
30+
sparse-checkout: |
31+
.github/workflows/**/*.yml
32+
devops/actions/**/*.yml
33+
34+
- name: Run zizmor
35+
uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0

0 commit comments

Comments
 (0)