From 0e917a678e26fa518bd34a3f2229dc023ac49205 Mon Sep 17 00:00:00 2001 From: PythonGermany <97847597+PythonGermany@users.noreply.github.com> Date: Sat, 15 Mar 2025 14:37:19 +0100 Subject: [PATCH 1/2] feat: Cache cargo-audit binary --- template/.github/workflows/audit.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template/.github/workflows/audit.yml b/template/.github/workflows/audit.yml index 7994a0e..1b70841 100644 --- a/template/.github/workflows/audit.yml +++ b/template/.github/workflows/audit.yml @@ -16,6 +16,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: ~/.cargo/bin/cargo-audit + key: ${{ runner.os }}-cargo-audit - name: Run security audit uses: rustsec/audit-check@v2.0.0 with: From cd86210a9cb73e2b6f7b98b1fafa3a7f4732dc1a Mon Sep 17 00:00:00 2001 From: PythonGermany <97847597+PythonGermany@users.noreply.github.com> Date: Sat, 15 Mar 2025 22:34:57 +0100 Subject: [PATCH 2/2] Use Swatinem/rust-cache --- template/.github/workflows/audit.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/template/.github/workflows/audit.yml b/template/.github/workflows/audit.yml index 1b70841..c4463f5 100644 --- a/template/.github/workflows/audit.yml +++ b/template/.github/workflows/audit.yml @@ -16,10 +16,7 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - uses: actions/cache@v4 - with: - path: ~/.cargo/bin/cargo-audit - key: ${{ runner.os }}-cargo-audit + - uses: Swatinem/rust-cache@v2 - name: Run security audit uses: rustsec/audit-check@v2.0.0 with: