28
28
- uses : actions/checkout@v3
29
29
- name : install
30
30
run : python -m pip install .
31
- - uses : trailofbits/gh-action-pip-audit@v0 .0.6
31
+ - uses : trailofbits/gh-action-pip-audit@v1 .0.0
32
32
` ` `
33
33
34
34
Or, with a virtual environment:
44
44
python -m venv env/
45
45
source env/bin/activate
46
46
python -m pip install .
47
- - uses : trailofbits/gh-action-pip-audit@v0 .0.6
47
+ - uses : trailofbits/gh-action-pip-audit@v1 .0.0
48
48
with :
49
49
virtual-environment : env/
50
50
` ` `
@@ -68,15 +68,15 @@ The `inputs` setting controls what sources `pip-audit` runs on.
68
68
To audit one or more requirements-style inputs :
69
69
70
70
` ` ` yaml
71
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
71
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
72
72
with:
73
73
inputs: requirements.txt dev-requirements.txt
74
74
` ` `
75
75
76
76
To audit a project that uses `pyproject.toml` for its dependencies :
77
77
78
78
` ` ` yaml
79
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
79
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
80
80
with:
81
81
# NOTE: this can be ` .`, for the current directory
82
82
inputs : path/to/project/
@@ -104,7 +104,7 @@ Example: use the virtual environment specified at `env/`, relative to the
104
104
current directory :
105
105
106
106
` ` ` yaml
107
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
107
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
108
108
with:
109
109
virtual-environment: env/
110
110
# Note the absence of ` input:`, since we're auditing the environment.
@@ -124,7 +124,7 @@ installed directly into the current environment are included.
124
124
Example:
125
125
126
126
``` yaml
127
- - uses : trailofbits/gh-action-pip-audit@v0 .0.6
127
+ - uses : trailofbits/gh-action-pip-audit@v1 .0.0
128
128
with :
129
129
local : true
130
130
` ` `
@@ -141,7 +141,7 @@ It's directly equivalent to `pip-audit --vulnerability-service=...`.
141
141
To audit with OSV instead of PyPI :
142
142
143
143
` ` ` yaml
144
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
144
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
145
145
with:
146
146
vulnerability-service: osv
147
147
` ` `
@@ -156,7 +156,7 @@ It's directly equivalent to `pip-audit --require-hashes ...`.
156
156
Example :
157
157
158
158
` ` ` yaml
159
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
159
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
160
160
with:
161
161
# NOTE: only works with requirements-style inputs
162
162
inputs: requirements.txt
@@ -173,7 +173,7 @@ It's directly equivalent to `pip-audit --no-deps ...`.
173
173
Example :
174
174
175
175
` ` ` yaml
176
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
176
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
177
177
with:
178
178
# NOTE: only works with requirements-style inputs
179
179
inputs: requirements.txt
@@ -191,7 +191,7 @@ is rendered at the end of the action.
191
191
Example :
192
192
193
193
` ` ` yaml
194
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
194
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
195
195
with:
196
196
summary: false
197
197
` ` `
@@ -210,7 +210,7 @@ indices to search (such as a corporate index with private packages), see
210
210
Example :
211
211
212
212
` ` ` yaml
213
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
213
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
214
214
with:
215
215
index-url: https://example.corporate.local/simple
216
216
` ` `
@@ -225,7 +225,7 @@ indexes to search when resolving dependencies. Each URL is whitespace-separated.
225
225
Example :
226
226
227
227
` ` ` yaml
228
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
228
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
229
229
with:
230
230
extra-index-urls: |
231
231
https://example.corporate.local/simple
@@ -242,7 +242,7 @@ ignore (i.e., exclude from the results) if present. Each ID is whitespace-separa
242
242
Example
243
243
244
244
` ` ` yaml
245
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
245
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
246
246
with:
247
247
ignore-vulns: |
248
248
GHSA-XXXX-YYYYYY
@@ -272,7 +272,7 @@ Example
272
272
Example :
273
273
274
274
` ` ` yaml
275
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
275
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
276
276
with:
277
277
internal-be-careful-allow-failure: true
278
278
` ` `
@@ -291,7 +291,7 @@ Example
291
291
Example :
292
292
293
293
` ` ` yaml
294
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
294
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
295
295
with:
296
296
internal-be-careful-debug: true
297
297
` ` `
@@ -308,7 +308,7 @@ If you're auditing a requirements file, consider setting `no-deps: true` or
308
308
`require-hashes : true`:
309
309
310
310
` ` ` yaml
311
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
311
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
312
312
with:
313
313
inputs: requirements.txt
314
314
require-hashes: true
@@ -317,7 +317,7 @@ If you're auditing a requirements file, consider setting `no-deps: true` or
317
317
or :
318
318
319
319
` ` ` yaml
320
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
320
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
321
321
with:
322
322
inputs: requirements.txt
323
323
no-deps: true
@@ -338,7 +338,7 @@ by the host system itself, or other Python projects that happen to be installed.
338
338
To minimize external dependencies, you can opt into a virtual environment :
339
339
340
340
` ` ` yaml
341
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
341
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
342
342
with:
343
343
# must be populated earlier in the CI
344
344
virtual-environment: env/
@@ -348,7 +348,7 @@ and, more aggressively, specify that only dependencies marked as "local"
348
348
in the virtual environment should be included :
349
349
350
350
` ` ` yaml
351
- - uses: trailofbits/gh-action-pip-audit@v0 .0.6
351
+ - uses: trailofbits/gh-action-pip-audit@v1 .0.0
352
352
with:
353
353
# must be populated earlier in the CI
354
354
virtual-environment: env/
0 commit comments