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
44 changes: 44 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: security checks
on: pull_request
jobs:
security-checks:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Cache Python dependencies
id: cache-deps
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry/virtualenvs
.venv
key: ${{ runner.os }}-security-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-security-
- name: Install dependencies
run: |
pip install poetry
poetry sync
- name: Poetry audit
id: poetry-audit
run: |-
pip install poetry-audit-plugin
poetry audit > audit.txt
cat audit.txt
continue-on-error: true
- name: Comment with audit result
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: audit.txt
Loading