Skip to content

Commit 0bec847

Browse files
quality.yml: generate Cargo.lock before audit step
rustsec/audit-check requires a Cargo.lock at the working directory. Our stubs gitignore Cargo.lock (since it's a published-as-stub crate that won't get its lockfile committed). Add a `cargo generate-lockfile` step in CI so audit has something to scan.
1 parent 0ea8761 commit 0bec847

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/quality.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
run: |
5252
DIR=$(find stubs -mindepth 1 -maxdepth 1 -type d | head -1)
5353
echo "dir=$DIR" >> "$GITHUB_OUTPUT"
54+
- name: Generate Cargo.lock
55+
if: steps.stub.outputs.dir
56+
working-directory: ${{ steps.stub.outputs.dir }}
57+
run: cargo generate-lockfile
58+
5459
- name: Audit
5560
if: steps.stub.outputs.dir
5661
uses: rustsec/audit-check@v2.0.0

0 commit comments

Comments
 (0)