Skip to content

Commit 61ccdfe

Browse files
authored
Merge pull request #62 from actions-rust-lang/more-debug-logging
2 parents 9c29543 + 959eb6c commit 61ccdfe

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.1.12] - 2024-01-20
11+
12+
* Fix default of `file` argument to make it work again for repositories without `Cargo.lock` checked in.
13+
1014
## [1.1.11] - 2024-01-18
1115

1216
* Allow specifying the path to the `Cargo.lock` file, in case it is not in the root of the repository (#55)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Setting `denyWarnings` to true will also enable these warnings, but each warning
5353
| -------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
5454
| `TOKEN` | The GitHub access token to allow us to retrieve, create and update issues (automatically set). | `github.token` |
5555
| `denyWarnings` | Any warnings generated will be treated as an error and fail the action. | false |
56-
| `file` | The path to the Cargo.lock file. | `Cargo.lock` |
56+
| `file` | The path to the Cargo.lock file. | |
5757
| `ignore` | A comma separated list of Rustsec IDs to ignore. | |
5858
| `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'` |
5959

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ inputs:
1717
file:
1818
description: "Cargo lockfile to inspect"
1919
required: false
20-
default: "Cargo.lock"
20+
default: ""
2121
ignore:
2222
description: "A comma separated list of Rustsec IDs to ignore"
2323
required: false

audit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,9 @@ def run() -> None:
410410
text=True,
411411
check=False,
412412
)
413+
debug(f"Command return code: {completed.returncode}")
413414
debug(f"Command output: {completed.stdout}")
415+
debug(f"Command error: {completed.stderr}")
414416
data = json.loads(completed.stdout)
415417

416418
summary = create_summary(data)

0 commit comments

Comments
 (0)