Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/sast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,20 @@ on:
jobs:
sast:
permissions:
security-events: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Bandit
uses: PyCQA/bandit-action@v1
# checkout repository
- name: Checkout repository
uses: actions/checkout@v7
# set up uv and a specific python version
- name: Set up uv with Python v3.14
uses: astral-sh/setup-uv@v10.3.0
with:
targets: src/validators
exclude: .github,.pytest_cache,.venv,.vscode,site,tests
python-version: "3.14"
enable-cache: true
# bandit, pinned by uv.lock and configured in pyproject.toml
- name: Install 'sast' dependencies
run: uv sync --locked --group sast
- name: Bandit
run: uv run --no-sync bandit -c pyproject.toml -r src/validators
Loading