Skip to content

build(deps): bump step-security/harden-runner from 2.21.1 to 2.22.0 #521

build(deps): bump step-security/harden-runner from 2.21.1 to 2.22.0

build(deps): bump step-security/harden-runner from 2.21.1 to 2.22.0 #521

Workflow file for this run

# SPDX-FileCopyrightText: (C) 2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
name: Zizmor Scan
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
zizmor:
permissions:
contents: read
security-events: write
runs-on: ubuntu-latest
env:
ZIZMOR_VERSION: 1.20.0
steps:
- name: Harden Runner
uses: step-security/harden-runner@351661ca32ac09a36dc5ee2d536e3128f2a3c8ed # v2.22.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
enable-cache: false
- name: Run Zizmor
run: |
uvx zizmor=="$ZIZMOR_VERSION" \
--format sarif \
.github \
> zizmor_scan_report.sarif
- name: Upload SARIF to GitHub Security
uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
if: always() && hashFiles('zizmor_scan_report.sarif') != ''
with:
sarif_file: zizmor_scan_report.sarif
- name: Upload Zizmor report artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always() && hashFiles('zizmor_scan_report.sarif') != ''
with:
name: zizmor-results
path: zizmor_scan_report.sarif
retention-days: 7