32
32
- uses : actions/checkout@v3
33
33
- name : install
34
34
run : python -m pip install .
35
- - uses : pypa/gh-action-pip-audit@v1.0.2
35
+ - uses : pypa/gh-action-pip-audit@v1.0.3
36
36
` ` `
37
37
38
38
Or, with a virtual environment:
48
48
python -m venv env/
49
49
source env/bin/activate
50
50
python -m pip install .
51
- - uses : pypa/gh-action-pip-audit@v1.0.2
51
+ - uses : pypa/gh-action-pip-audit@v1.0.3
52
52
with :
53
53
virtual-environment : env/
54
54
` ` `
@@ -72,15 +72,15 @@ The `inputs` setting controls what sources `pip-audit` runs on.
72
72
To audit one or more requirements-style inputs :
73
73
74
74
` ` ` yaml
75
- - uses: pypa/gh-action-pip-audit@v1.0.2
75
+ - uses: pypa/gh-action-pip-audit@v1.0.3
76
76
with:
77
77
inputs: requirements.txt dev-requirements.txt
78
78
` ` `
79
79
80
80
To audit a project that uses `pyproject.toml` for its dependencies :
81
81
82
82
` ` ` yaml
83
- - uses: pypa/gh-action-pip-audit@v1.0.2
83
+ - uses: pypa/gh-action-pip-audit@v1.0.3
84
84
with:
85
85
# NOTE: this can be ` .`, for the current directory
86
86
inputs : path/to/project/
@@ -108,7 +108,7 @@ Example: use the virtual environment specified at `env/`, relative to the
108
108
current directory :
109
109
110
110
` ` ` yaml
111
- - uses: pypa/gh-action-pip-audit@v1.0.2
111
+ - uses: pypa/gh-action-pip-audit@v1.0.3
112
112
with:
113
113
virtual-environment: env/
114
114
# Note the absence of ` input:`, since we're auditing the environment.
@@ -128,7 +128,7 @@ installed directly into the current environment are included.
128
128
Example:
129
129
130
130
``` yaml
131
- - uses : pypa/gh-action-pip-audit@v1.0.2
131
+ - uses : pypa/gh-action-pip-audit@v1.0.3
132
132
with :
133
133
local : true
134
134
` ` `
@@ -145,7 +145,7 @@ It's directly equivalent to `pip-audit --vulnerability-service=...`.
145
145
To audit with OSV instead of PyPI :
146
146
147
147
` ` ` yaml
148
- - uses: pypa/gh-action-pip-audit@v1.0.2
148
+ - uses: pypa/gh-action-pip-audit@v1.0.3
149
149
with:
150
150
vulnerability-service: osv
151
151
` ` `
@@ -160,7 +160,7 @@ It's directly equivalent to `pip-audit --require-hashes ...`.
160
160
Example :
161
161
162
162
` ` ` yaml
163
- - uses: pypa/gh-action-pip-audit@v1.0.2
163
+ - uses: pypa/gh-action-pip-audit@v1.0.3
164
164
with:
165
165
# NOTE: only works with requirements-style inputs
166
166
inputs: requirements.txt
@@ -177,7 +177,7 @@ It's directly equivalent to `pip-audit --no-deps ...`.
177
177
Example :
178
178
179
179
` ` ` yaml
180
- - uses: pypa/gh-action-pip-audit@v1.0.2
180
+ - uses: pypa/gh-action-pip-audit@v1.0.3
181
181
with:
182
182
# NOTE: only works with requirements-style inputs
183
183
inputs: requirements.txt
@@ -195,7 +195,7 @@ is rendered at the end of the action.
195
195
Example :
196
196
197
197
` ` ` yaml
198
- - uses: pypa/gh-action-pip-audit@v1.0.2
198
+ - uses: pypa/gh-action-pip-audit@v1.0.3
199
199
with:
200
200
summary: false
201
201
` ` `
@@ -214,7 +214,7 @@ indices to search (such as a corporate index with private packages), see
214
214
Example :
215
215
216
216
` ` ` yaml
217
- - uses: pypa/gh-action-pip-audit@v1.0.2
217
+ - uses: pypa/gh-action-pip-audit@v1.0.3
218
218
with:
219
219
index-url: https://example.corporate.local/simple
220
220
` ` `
@@ -229,7 +229,7 @@ indexes to search when resolving dependencies. Each URL is whitespace-separated.
229
229
Example :
230
230
231
231
` ` ` yaml
232
- - uses: pypa/gh-action-pip-audit@v1.0.2
232
+ - uses: pypa/gh-action-pip-audit@v1.0.3
233
233
with:
234
234
extra-index-urls: |
235
235
https://example.corporate.local/simple
@@ -246,7 +246,7 @@ ignore (i.e., exclude from the results) if present. Each ID is whitespace-separa
246
246
Example
247
247
248
248
` ` ` yaml
249
- - uses: pypa/gh-action-pip-audit@v1.0.2
249
+ - uses: pypa/gh-action-pip-audit@v1.0.3
250
250
with:
251
251
ignore-vulns: |
252
252
GHSA-XXXX-YYYYYY
@@ -276,7 +276,7 @@ Example
276
276
Example :
277
277
278
278
` ` ` yaml
279
- - uses: pypa/gh-action-pip-audit@v1.0.2
279
+ - uses: pypa/gh-action-pip-audit@v1.0.3
280
280
with:
281
281
internal-be-careful-allow-failure: true
282
282
` ` `
@@ -295,7 +295,7 @@ Example
295
295
Example :
296
296
297
297
` ` ` yaml
298
- - uses: pypa/gh-action-pip-audit@v1.0.2
298
+ - uses: pypa/gh-action-pip-audit@v1.0.3
299
299
with:
300
300
internal-be-careful-debug: true
301
301
` ` `
@@ -312,7 +312,7 @@ If you're auditing a requirements file, consider setting `no-deps: true` or
312
312
`require-hashes : true`:
313
313
314
314
` ` ` yaml
315
- - uses: pypa/gh-action-pip-audit@v1.0.2
315
+ - uses: pypa/gh-action-pip-audit@v1.0.3
316
316
with:
317
317
inputs: requirements.txt
318
318
require-hashes: true
@@ -321,7 +321,7 @@ If you're auditing a requirements file, consider setting `no-deps: true` or
321
321
or :
322
322
323
323
` ` ` yaml
324
- - uses: pypa/gh-action-pip-audit@v1.0.2
324
+ - uses: pypa/gh-action-pip-audit@v1.0.3
325
325
with:
326
326
inputs: requirements.txt
327
327
no-deps: true
@@ -342,7 +342,7 @@ by the host system itself, or other Python projects that happen to be installed.
342
342
To minimize external dependencies, you can opt into a virtual environment :
343
343
344
344
` ` ` yaml
345
- - uses: pypa/gh-action-pip-audit@v1.0.2
345
+ - uses: pypa/gh-action-pip-audit@v1.0.3
346
346
with:
347
347
# must be populated earlier in the CI
348
348
virtual-environment: env/
@@ -352,7 +352,7 @@ and, more aggressively, specify that only dependencies marked as "local"
352
352
in the virtual environment should be included :
353
353
354
354
` ` ` yaml
355
- - uses: pypa/gh-action-pip-audit@v1.0.2
355
+ - uses: pypa/gh-action-pip-audit@v1.0.3
356
356
with:
357
357
# must be populated earlier in the CI
358
358
virtual-environment: env/
@@ -382,7 +382,7 @@ jobs:
382
382
run: |
383
383
pipx run pipfile-requirements Pipfile.lock > requirements.txt
384
384
385
- - uses: pypa/gh-action-pip-audit@v1.0.2
385
+ - uses: pypa/gh-action-pip-audit@v1.0.3
386
386
with:
387
387
inputs: requirements.txt
388
388
` ` `
0 commit comments