Skip to content

Commit

Permalink
Generate lockfile when not existing
Browse files Browse the repository at this point in the history
Whenever the `file` argument is set give, then cargo audit will not generate the file if it doesn't exist
  • Loading branch information
jonasbb authored Jan 19, 2024
1 parent 6943412 commit 96eb2dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Setting `denyWarnings` to true will also enable these warnings, but each warning
| -------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| `TOKEN` | The GitHub access token to allow us to retrieve, create and update issues (automatically set). | `github.token` |
| `denyWarnings` | Any warnings generated will be treated as an error and fail the action. | false |
| `file` | The path to the Cargo.lock file. | `Cargo.lock` |
| `file` | The path to the Cargo.lock file. | |
| `ignore` | A comma separated list of Rustsec IDs to ignore. | |
| `createIssues` | Create/Update issues for each found vulnerability. By default only on `main` or `master` branch. | `github.ref == 'refs/heads/master' \|\| github.ref == 'refs/heads/main'` |

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inputs:
file:
description: "Cargo lockfile to inspect"
required: false
default: "Cargo.lock"
default: ""
ignore:
description: "A comma separated list of Rustsec IDs to ignore"
required: false
Expand Down

0 comments on commit 96eb2dc

Please sign in to comment.