Skip to content

Commit 63d1c43

Browse files
committed
fix: drop cargo deny from rust ci
Signed-off-by: lucarlig <luca.carlig@ibm.com>
1 parent fd96b7a commit 63d1c43

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/ci-rust-python-package.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
paths:
77
- "Makefile"
88
- "Cargo.toml"
9-
- "deny.toml"
109
- "crates/**"
1110
- "README.md"
1211
- "DEVELOPING.md"
@@ -21,7 +20,6 @@ on:
2120
paths:
2221
- "Makefile"
2322
- "Cargo.toml"
24-
- "deny.toml"
2523
- "crates/**"
2624
- "README.md"
2725
- "DEVELOPING.md"
@@ -130,15 +128,12 @@ jobs:
130128
rustc --version
131129
cargo --version
132130
133-
- name: Install cargo audit tools
134-
run: cargo install cargo-audit@0.22.1 cargo-deny@0.19.0 --locked
131+
- name: Install cargo audit
132+
run: cargo install cargo-audit@0.22.1 --locked
135133

136134
- name: Run cargo audit
137135
run: cargo audit --file Cargo.lock
138136

139-
- name: Run cargo deny license policy checks
140-
run: cargo deny check licenses --config deny.toml
141-
142137
coverage:
143138
needs: validate-and-detect
144139
if: needs.validate-and-detect.outputs.has_plugins == 'true'

tests/test_plugin_catalog.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,6 @@ def test_ci_workflow_shared_paths_match_catalog_contract(self) -> None:
17651765
expected_paths = {
17661766
"Makefile",
17671767
"Cargo.toml",
1768-
"deny.toml",
17691768
"crates/**",
17701769
"README.md",
17711770
"DEVELOPING.md",
@@ -2015,13 +2014,12 @@ def test_ci_workflow_includes_parity_jobs_for_rust_plugin_checks(self) -> None:
20152014
self.assertIn("if: needs.validate-and-detect.outputs.has_plugins == 'true'", security_section)
20162015
self.assertIn("if: needs.validate-and-detect.outputs.has_plugins == 'true'", coverage_section)
20172016
self.assertIn("if: needs.validate-and-detect.outputs.has_plugins == 'true'", documentation_section)
2018-
self.assertIn("cargo install cargo-audit@0.22.1 cargo-deny@0.19.0 --locked", security_section)
2017+
self.assertIn("cargo install cargo-audit@0.22.1 --locked", security_section)
20192018
self.assertIn("cargo audit --file Cargo.lock", security_section)
2020-
self.assertIn("cargo deny check licenses --config deny.toml", security_section)
2019+
self.assertNotIn("cargo-deny", security_section)
2020+
self.assertNotIn("cargo deny", security_section)
20212021
self.assertNotIn("--workspace", security_section)
20222022
self.assertNotIn("--manifest-path", security_section)
2023-
self.assertIn("--config deny.toml", security_section)
2024-
self.assertNotIn("/deny.toml", security_section.replace("--config deny.toml", ""))
20252023
self.assertNotIn("matrix:", security_section)
20262024
self.assertIn("cargo install cargo-llvm-cov --version 0.8.4 --locked", coverage_section)
20272025
self.assertIn("package='${{ needs.validate-and-detect.outputs.single_cargo_package }}'", coverage_section)

tools/plugin_catalog.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"Makefile",
2121
".github/workflows/",
2222
"Cargo.toml",
23-
"deny.toml",
2423
"crates/",
2524
"README.md",
2625
"DEVELOPING.md",

0 commit comments

Comments
 (0)