Skip to content

Commit 6e59ef7

Browse files
committed
feat(cargo-audit): install fresh cargo-audit on test run
This is an altered backport of #5614 which makes the `cargo-audit` test to always install the latest version of `cargo-audit`. In this version `--force` flag is used in order to overwrite already installed version in the devctr. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
1 parent 005d92b commit 6e59ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration_tests/security/test_sec_audit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ def set_of_vulnerabilities(output: CommandReturn):
3535
)
3636

3737
git_ab_test_host_command_if_pr(
38-
"cargo audit --deny warnings -q --json",
38+
"cargo install --force --locked cargo-audit && cargo audit --deny warnings -q --json",
3939
comparator=set_did_not_grow_comparator(set_of_vulnerabilities),
4040
)

0 commit comments

Comments
 (0)