From 7ae7de0d1ded22851d5cdd69b5886c58da3ba27a Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Tue, 29 Oct 2024 22:38:58 +0200 Subject: [PATCH] ci: fix audit failing by generating cargo lock file before running it --- .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 }}