Skip to content

Commit

Permalink
Merge pull request #62 from actions-rust-lang/more-debug-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb authored Jan 19, 2024
2 parents 9c29543 + 959eb6c commit 61ccdfe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.12] - 2024-01-20

* Fix default of `file` argument to make it work again for repositories without `Cargo.lock` checked in.

## [1.1.11] - 2024-01-18

* Allow specifying the path to the `Cargo.lock` file, in case it is not in the root of the repository (#55)
Expand Down
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
2 changes: 2 additions & 0 deletions audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ def run() -> None:
text=True,
check=False,
)
debug(f"Command return code: {completed.returncode}")
debug(f"Command output: {completed.stdout}")
debug(f"Command error: {completed.stderr}")
data = json.loads(completed.stdout)

summary = create_summary(data)
Expand Down

0 comments on commit 61ccdfe

Please sign in to comment.