f74169fdaa
chore(deps): bump actions/checkout from 6.0.3 to 7.0.0
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: Security
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
dependency-audit:
|
|
name: Dependency audit
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
|
|
|
|
# Block known vulnerabilities in the locked Python dependency graph.
|
|
- name: Run uv audit against locked dependencies
|
|
run: uv audit --locked
|
|
|
|
secret-scan:
|
|
name: Secret scan
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout full history for diff-aware scanning
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
# The action derives the commit range from the GitHub event and fails on
|
|
# verified secrets. Keep output limited to verified findings to avoid noisy
|
|
# unverified annotations.
|
|
- name: Run TruffleHog OSS secret scan
|
|
uses: trufflesecurity/trufflehog@30d5bb91af1a771378349dbbb0c82129392acf70 # v3.95.6
|
|
with:
|
|
version: 3.95.5
|
|
extra_args: --results=verified
|