mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-07 19:12:26 +01:00
31 lines
924 B
YAML
31 lines
924 B
YAML
|
name: GitHub Actions Security Analysis
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
|
|
||
|
jobs:
|
||
|
zizmor:
|
||
|
name: Security Analysis with zizmor
|
||
|
runs-on: ubuntu-latest
|
||
|
permissions:
|
||
|
contents: read
|
||
|
security-events: write
|
||
|
steps:
|
||
|
- name: Checkout repository
|
||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||
|
with:
|
||
|
persist-credentials: false
|
||
|
- name: Install the latest version of uv
|
||
|
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0
|
||
|
- name: Run zizmor
|
||
|
run: uvx zizmor --persona=pedantic --format sarif . > results.sarif
|
||
|
env:
|
||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
|
- name: Upload SARIF file
|
||
|
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
|
||
|
with:
|
||
|
sarif_file: results.sarif
|
||
|
category: zizmor
|