From 30ae60e4dc4323ceb71b3378c1b00f1ed7eaeb37 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Tue, 29 Oct 2024 22:42:33 +0200 Subject: [PATCH] ci: fix audit failing by generating cargo lock file before running it (#229) --- .github/workflows/audit.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 47c8462b..6098f9f7 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -10,6 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - name: Generate Cargo.lock # https://github.com/rustsec/audit-check/issues/27 + run: cargo generate-lockfile + + - name: Audit Check - uses: rustsec/audit-check@v2.0.0 with: token: ${{ secrets.GITHUB_TOKEN }}