Skip to content

[Code Analysis] Zizmor Scan #37

[Code Analysis] Zizmor Scan

[Code Analysis] Zizmor Scan #37

Workflow file for this run

---
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
name: "[Code Analysis] Zizmor Scan"
run-name: "[Code Analysis] Zizmor Scan"
on:
workflow_dispatch: {}
pull_request:
branches:
- main
- release-*
types:
- opened
- synchronize
- reopened
push:
branches:
- main
- release-*
schedule:
# Run security checks every day at 2 AM UTC
- cron: "0 2 * * *"
# Trigger workflow when enqueued to a merge group
# (must be under 'on')
merge_group:
# Only run at most 1 workflow concurrently per PR or per branch to keep costs down
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
zizmor-scan:
name: "Run Zizmor Scan"
permissions:
contents: read
security-events: write # Needed to upload the results to code-scanning dashboard
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: "Run Zizmor scan"
uses: open-edge-platform/geti-ci/actions/zizmor@3a4b81ea648711eb638b34757427cd3ef71d19f1
with:
scan-scope: ${{ contains(fromJSON('["pull_request","merge_group"]'), github.event_name) && 'changed' || 'all' }}
severity-level: ${{ contains(fromJSON('["pull_request","merge_group"]'), github.event_name) && 'HIGH' || 'LOW' }}
fail-on-findings: ${{ contains(fromJSON('["pull_request","merge_group"]'), github.event_name) && 'true' || 'false' }}