mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +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@1936c8cfe365805f86ceb097d570620cc3a19932 # v2.47.25
|
|
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@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3
|
|
with:
|
|
sarif_file: results.sarif
|
|
category: zizmor
|