Skip to content

Commit ad47efb

Browse files
committed
ci: add cargo-deny to workflow
Integrates cargo-deny into the main CI pipeline using the official EmbarkStudios action. This will automatically block PRs that introduce banned licenses, insecure crates, or unallowed registries.
1 parent 8e8348f commit ad47efb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,19 @@ jobs:
152152
- name: Clippy
153153
run: cargo clippy --workspace -- -D warnings
154154

155+
deny:
156+
name: Cargo Deny
157+
needs: changes
158+
if: needs.changes.outputs.rust == 'true' || github.event_name == 'push'
159+
runs-on: ubuntu-latest
160+
steps:
161+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
162+
163+
- name: Cargo deny
164+
uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2.0.15
165+
with:
166+
command: check
167+
155168

156169
skills:
157170
name: Verify Skills

0 commit comments

Comments
 (0)