mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-23 03:42:59 -05:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: Run Zizmor
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["**"]
|
|
paths:
|
|
- ".github/**"
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
zizmor:
|
|
name: zizmor
|
|
runs-on: ubuntu-slim
|
|
timeout-minutes: 45
|
|
permissions:
|
|
contents: read # needed to checkout the repo on private repos (no-op on public)
|
|
security-events: write # needed for SARIF uploads
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install the latest version of uv
|
|
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # ratchet:astral-sh/setup-uv@v8.2.0
|
|
with:
|
|
enable-cache: false
|
|
version: "0.11.25"
|
|
|
|
- name: Install zizmor from uv.lock
|
|
run: uv sync --frozen --no-install-project --only-group zizmor
|
|
|
|
- name: Run zizmor
|
|
run: uv run --no-sync zizmor --format=sarif . > results.sarif
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload SARIF file
|
|
uses: github/codeql-action/upload-sarif@ba454b8ab46733eb6145342877cd148270bb77ab # ratchet:github/codeql-action/upload-sarif@codeql-bundle-v2.23.5
|
|
with:
|
|
sarif_file: results.sarif
|
|
category: zizmor
|