Skip to content

Commit 6432241

Browse files
en-j-ganujm1
andauthored
Add workflow to scan GitHub actions using zizmor (#156)
* added worfklow for zizmor scanning * fixed worfklow for zizmor scanning * fixed worfklow for zizmor scanning * Fix line endings * added license header * Fix license --------- Co-authored-by: Anuj Mittal <anuj.mittal@intel.com>
1 parent 9c739ac commit 6432241

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/zizmor.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: MIT
3+
---
4+
name: GitHub Actions Security Analysis with zizmor 🌈
5+
6+
on:
7+
push:
8+
branches: [3.0, 3.0-dev]
9+
pull_request:
10+
branches: [3.0, 3.0-dev]
11+
12+
permissions: {}
13+
14+
jobs:
15+
run-zizmor-scan:
16+
name: Run Zizmor scan
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
env:
21+
ZIZMOR_VERSION: 1.5.2
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
25+
with:
26+
persist-credentials: false
27+
28+
- name: Install the latest version of uv
29+
uses: astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04 # v6.0.0
30+
31+
- name: Run zizmor 🌈
32+
run: uvx zizmor=="$ZIZMOR_VERSION" "$GITHUB_WORKSPACE" --format sarif > zizmor_scan_report.sarif
33+
34+
- name: Upload SARIF file
35+
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
36+
with:
37+
sarif_file: zizmor_scan_report.sarif

0 commit comments

Comments
 (0)