Skip to content

Commit 549bc52

Browse files
authored
Add manifest-path variable (#70)
* Add manifest-path variable * Stop using ancient cargo version
1 parent c86e4a9 commit 549bc52

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
build:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@master
8+
- uses: actions/checkout@v4
99

1010
- name: Build Docker image
1111
run: docker build -t test-cargo-deny .
@@ -14,4 +14,4 @@ jobs:
1414
run: docker run -v ${PWD}/test:/test test-cargo-deny "" "" --manifest-path test/Cargo.toml list
1515

1616
- name: Run check
17-
run: docker run -v ${PWD}/test:/test test-cargo-deny 1.60.0 "" --manifest-path test/Cargo.toml --all-features check
17+
run: docker run -v ${PWD}/test:/test test-cargo-deny 1.70.0 "" --manifest-path test/Cargo.toml --all-features check

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ inputs:
1919
description: "The arguments to pass to the command"
2020
required: false
2121
default: ""
22+
manifest-path:
23+
description: "Repo root relative path to the Cargo manifest to check"
24+
required: false
25+
default: "Cargo.toml"
2226
log-level:
2327
description: "The log level for cargo-deny"
2428
required: false
@@ -40,6 +44,8 @@ runs:
4044
- ${{ inputs.credentials }}
4145
- --log-level
4246
- ${{ inputs.log-level }}
47+
- --manifest-path
48+
- ${{ inputs.manifest-path }}
4349
- ${{ inputs.arguments }}
4450
- ${{ inputs.command }}
4551
- ${{ inputs.command-arguments }}

0 commit comments

Comments
 (0)