-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: William Woodruff <[email protected]>
- Loading branch information
Showing
1 changed file
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- name: install | ||
run: python -m pip install . | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
``` | ||
Or, with a virtual environment: | ||
|
@@ -44,7 +44,7 @@ jobs: | |
python -m venv env/ | ||
source env/bin/activate | ||
python -m pip install . | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
virtual-environment: env/ | ||
``` | ||
|
@@ -68,15 +68,15 @@ The `inputs` setting controls what sources `pip-audit` runs on. | |
To audit one or more requirements-style inputs: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
inputs: requirements.txt dev-requirements.txt | ||
``` | ||
|
||
To audit a project that uses `pyproject.toml` for its dependencies: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
# NOTE: this can be `.`, for the current directory | ||
inputs: path/to/project/ | ||
|
@@ -104,7 +104,7 @@ Example: use the virtual environment specified at `env/`, relative to the | |
current directory: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
virtual-environment: env/ | ||
# Note the absence of `input:`, since we're auditing the environment. | ||
|
@@ -124,7 +124,7 @@ installed directly into the current environment are included. | |
Example: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
local: true | ||
``` | ||
|
@@ -141,7 +141,7 @@ It's directly equivalent to `pip-audit --vulnerability-service=...`. | |
To audit with OSV instead of PyPI: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
vulnerability-service: osv | ||
``` | ||
|
@@ -156,7 +156,7 @@ It's directly equivalent to `pip-audit --require-hashes ...`. | |
Example: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
# NOTE: only works with requirements-style inputs | ||
inputs: requirements.txt | ||
|
@@ -173,7 +173,7 @@ It's directly equivalent to `pip-audit --no-deps ...`. | |
Example: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
# NOTE: only works with requirements-style inputs | ||
inputs: requirements.txt | ||
|
@@ -191,7 +191,7 @@ is rendered at the end of the action. | |
Example: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
summary: false | ||
``` | ||
|
@@ -210,7 +210,7 @@ indices to search (such as a corporate index with private packages), see | |
Example: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
index-url: https://example.corporate.local/simple | ||
``` | ||
|
@@ -225,7 +225,7 @@ indexes to search when resolving dependencies. Each URL is whitespace-separated. | |
Example: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
extra-index-urls: | | ||
https://example.corporate.local/simple | ||
|
@@ -242,7 +242,7 @@ ignore (i.e., exclude from the results) if present. Each ID is whitespace-separa | |
Example | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
ignore-vulns: | | ||
GHSA-XXXX-YYYYYY | ||
|
@@ -272,7 +272,7 @@ Example | |
Example: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
internal-be-careful-allow-failure: true | ||
``` | ||
|
@@ -291,7 +291,7 @@ Example | |
Example: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
internal-be-careful-debug: true | ||
``` | ||
|
@@ -308,7 +308,7 @@ If you're auditing a requirements file, consider setting `no-deps: true` or | |
`require-hashes: true`: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
inputs: requirements.txt | ||
require-hashes: true | ||
|
@@ -317,7 +317,7 @@ If you're auditing a requirements file, consider setting `no-deps: true` or | |
or: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
inputs: requirements.txt | ||
no-deps: true | ||
|
@@ -338,7 +338,7 @@ by the host system itself, or other Python projects that happen to be installed. | |
To minimize external dependencies, you can opt into a virtual environment: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
# must be populated earlier in the CI | ||
virtual-environment: env/ | ||
|
@@ -348,7 +348,7 @@ and, more aggressively, specify that only dependencies marked as "local" | |
in the virtual environment should be included: | ||
|
||
```yaml | ||
- uses: trailofbits/[email protected].5 | ||
- uses: trailofbits/[email protected].6 | ||
with: | ||
# must be populated earlier in the CI | ||
virtual-environment: env/ | ||
|