Skip to content

Fix license deprecation warnings (#75) #173

Fix license deprecation warnings (#75)

Fix license deprecation warnings (#75) #173

Workflow file for this run

name: Bandit Scan
on:
push:
branches: [ version-0 ]
pull_request:
branches: [ version-0 ]
jobs:
bandit-security-scan:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
# Explicitly set permissions, following the principle of least privilege
actions: read
checks: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v5
# with:
# # For pull requests, check out the base branch, not the PR branch
# ref: ${{ github.event.pull_request.base.sha }}
- name: Set up Python
uses: actions/setup-python@v6
with:
# TODO: workflow to test for python 3.9 or more
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies
run: |
uv sync --extra test --extra dev
- name: Run Bandit
run: |
uv add bandit
uv run bandit -r . -f custom --msg-template "{abspath}:{line}: {severity}: {test_id}: {msg}" --exclude ./.venv