Files
chguard/.gitea/workflows/lint-and-security.yml
Marco D'Aleo 5353310e15
Some checks failed
Lint & Security / precommit-and-security (pull_request) Failing after 1m11s
Edit workflow to run pip-audit against a poetry export file
2025-12-21 09:54:08 +00:00

33 lines
693 B
YAML

name: Lint & Security
on:
pull_request:
jobs:
precommit-and-security:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit hooks
run: pre-commit run --all-files --color always
- name: Audit dependencies
run: |
pip install poetry pip-audit
poetry export -f requirements.txt --without-hashes \
| pip-audit -r /dev/stdin
- name: Run pip-audit
run: pip-audit