Skip to content

chore(deps): update actions/deploy-pages action to v5.0.1 (#114) #186

chore(deps): update actions/deploy-pages action to v5.0.1 (#114)

chore(deps): update actions/deploy-pages action to v5.0.1 (#114) #186

Workflow file for this run

name: Python Checks
# Geen pull_request meer: flake8 en bandit draaien daar als stap in
# pr-checks.yml, waar ze geen eigen gefactureerde job kosten. Hier bleven de
# wekelijkse run en de run op main staan, en daar zit de waarde van een
# herhaalde scan: bandit vindt met nieuwe regels iets in code die zelf niet
# veranderd is, en dat merk je nooit als hij alleen op gewijzigde code draait.
on:
push:
branches: [ main, development ]
schedule:
- cron: '0 5 * * 0'
workflow_dispatch:
# Zonder dit erft de workflow wat de repository-default ook is.
permissions: {}
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.14'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 bandit
- name: Lint with flake8
run: flake8 src/static/scripts/ --max-line-length=120
- name: Security scan with bandit
run: bandit -r src/static/scripts/ -ll