Skip to content

Commit

Permalink
Added pip-audit to Github workflow (#2260)
Browse files Browse the repository at this point in the history
* Added pip-audit Github workflow

* Modified pip-audit

* Changed branch name

* Modified pip-audit.yml

* Modified pip-audit.yml

* Modified pip-audit.yml

* Modified pip-audit.yml
  • Loading branch information
joshuastegmaier authored Feb 5, 2024
1 parent 016f7e3 commit 916e00e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pip-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: pip-audit

on:
workflow_dispatch:
push:
branches: [main, release]
pull_request:
branches: [main]

jobs:
pip-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: 'Generate requirements.txt'
run: |
pipx run pipfile-requirements Pipfile.lock > requirements.txt
- uses: pypa/gh-action-pip-audit@v1.0.8
with:
inputs: requirements.txt

0 comments on commit 916e00e

Please sign in to comment.