-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.04 KB
/
audit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: audit
on:
pull_request:
paths:
- '**/poetry.lock'
- '**/pyproject.toml'
- '.github/workflows/audit.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
audit:
permissions:
pull-requests: write
runs-on: ubuntu-latest
defaults:
run:
shell: bash
name: audit dependencies
steps:
- uses: int128/hide-comment-action@v1.23.0
with:
contains: Packj Audit Report
- uses: actions/checkout@v3.5.3
- name: setting up python
uses: actions/setup-python@v4.7.0
with:
python-version-file: pyproject.toml
- name: install and configure poetry
uses: pronovic/setup-poetry@v1.2.0
with:
version: 1.5.1
- name: export poetry locks
run: poetry export -f requirements.txt --output requirements.txt
- name: audit poetry locks
uses: ossillate-inc/packj-github-action@v0.0.11-beta
with:
DEPENDENCY_FILES: pypi:requirements.txt