Files
kata-containers/.github/workflows/cargo-deny.yaml
stevenhorsman 9448988783 workflow: Update cargo deny check
The cargo deny generated action doesn't seem to work
and seems unnecessarily complex, so try using
EmbarkStudios/cargo-deny-action instead

Fixes: #11218
Signed-off-by: stevenhorsman <steven@uk.ibm.com>
2026-04-11 08:46:32 +01:00

39 lines
956 B
YAML

name: Cargo Deny Check
on:
workflow_dispatch:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
cargo-deny:
name: cargo-deny
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
checks:
# Note: advisories checks are currently covered in OSV-scanner instead
- bans licenses sources
steps:
- name: Checkout the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Run the cargo deny check ( ${{ matrix.checks }})
uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 #2.0.15
with:
command: check ${{ matrix.checks }}