mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 20:58:48 +00:00
41 lines
1,005 B
YAML
41 lines
1,005 B
YAML
name: GitHub Actions Security Analysis
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
paths:
|
|
- ".github/workflows/**"
|
|
push:
|
|
branches:
|
|
- main
|
|
- "renovate/**"
|
|
paths:
|
|
- ".github/workflows/**"
|
|
|
|
jobs:
|
|
zizmor:
|
|
name: zizmor
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
security-events: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: taiki-e/install-action@df5dec2a2f73ff6dbace3072df1242669b7bb7d1 # v2.47.9
|
|
with:
|
|
tool: zizmor
|
|
|
|
- name: Run zizmor
|
|
run: zizmor --format sarif . > results.sarif
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload SARIF file
|
|
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3
|
|
with:
|
|
sarif_file: results.sarif
|
|
category: zizmor
|