From ecee67887892dec63010ddaa8550bb9bdc5dd0e2 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Tue, 13 Feb 2024 10:02:42 +0100 Subject: [PATCH 1/2] Add manifest-path variable --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index e861538..f06973e 100644 --- a/action.yml +++ b/action.yml @@ -19,6 +19,10 @@ inputs: description: "The arguments to pass to the command" required: false default: "" + manifest-path: + description: "Repo root relative path to the Cargo manifest to check" + required: false + default: "Cargo.toml" log-level: description: "The log level for cargo-deny" required: false @@ -40,6 +44,8 @@ runs: - ${{ inputs.credentials }} - --log-level - ${{ inputs.log-level }} + - --manifest-path + - ${{ inputs.manifest-path }} - ${{ inputs.arguments }} - ${{ inputs.command }} - ${{ inputs.command-arguments }} From bea3a60e3e14a7c897be75ccdc585ad7a01704b6 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Tue, 13 Feb 2024 10:09:11 +0100 Subject: [PATCH 2/2] Stop using ancient cargo version --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 933650e..057d18a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v4 - name: Build Docker image run: docker build -t test-cargo-deny . @@ -14,4 +14,4 @@ jobs: run: docker run -v ${PWD}/test:/test test-cargo-deny "" "" --manifest-path test/Cargo.toml list - name: Run check - run: docker run -v ${PWD}/test:/test test-cargo-deny 1.60.0 "" --manifest-path test/Cargo.toml --all-features check + run: docker run -v ${PWD}/test:/test test-cargo-deny 1.70.0 "" --manifest-path test/Cargo.toml --all-features check