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
37 changes: 37 additions & 0 deletions .github/workflows/pip-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Python dependency security audit

on:
schedule:
# Run every Monday at 06:00 UTC
- cron: "0 6 * * 1"

pull_request:

# Allow this workflow to be run manually.
workflow_dispatch:

jobs:
pip-audit:
name: Audit Python dependencies
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Upgrade pip
run: python -m pip install --upgrade pip

- name: Install SolarFarmer Python SDK
run: python -m pip install .

- name: Check installed dependencies
run: python -m pip check

- name: Run pip-audit
uses: pypa/gh-action-pip-audit@v1.1.0
Loading