Skip to content

chore(ci): bump actions/setup-python from 5 to 6 #3

chore(ci): bump actions/setup-python from 5 to 6

chore(ci): bump actions/setup-python from 5 to 6 #3

Workflow file for this run

name: Security
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 9 * * 1" # Every Monday at 9am UTC
permissions:
contents: read
security-events: write
jobs:
bandit:
name: Bandit (SAST)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- run: pip install bandit[toml]
- run: bandit -r i3/ server/ -ll -f json -o bandit-report.json || true
- uses: actions/upload-artifact@v4
with:
name: bandit-report
path: bandit-report.json
pip-audit:
name: pip-audit (Dependencies)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- run: pipx install poetry==1.8.0
- run: pip install pip-audit
- run: poetry export -f requirements.txt --with dev --output requirements.txt
- run: pip-audit -r requirements.txt
safety:
name: Safety (CVE Database)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
- run: pipx install poetry==1.8.0
- run: pip install safety
- run: poetry export -f requirements.txt --with dev --output requirements.txt
- run: safety check -r requirements.txt --json || true
codeql:
name: CodeQL
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
languages: python
queries: security-extended
- uses: github/codeql-action/analyze@v3
secret-scan:
name: Secret Scanning (Gitleaks)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}