mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
40 lines
949 B
YAML
40 lines
949 B
YAML
name: GitHub Actions Security Analysis
|
|
|
|
permissions: {}
|
|
|
|
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:
|
|
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
|
|
|
|
- uses: taiki-e/install-action@a7adeb15af2926b0ac7478ad165047cd2d8ba350 # v2.47.18
|
|
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@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3
|
|
with:
|
|
sarif_file: results.sarif
|
|
category: zizmor
|