Use --locked in cargo build and lint invocations (#21602)

This ensures CI fails if the committed lockfile is outdated
This commit is contained in:
Zanie Blue
2026-05-07 23:14:18 +00:00
committed by GitHub
parent 893038f77c
commit 79154e6952
4 changed files with 5 additions and 5 deletions
@@ -75,7 +75,7 @@ jobs:
- name: Cargo build
working-directory: tools/argument-comment-lint
shell: bash
run: cargo build --release --target ${{ matrix.target }}
run: cargo build --release --target ${{ matrix.target }} --locked
- name: Stage artifact
shell: bash