Skip to content

Cargo Deny (scheduled) #41

Cargo Deny (scheduled)

Cargo Deny (scheduled) #41

Workflow file for this run

# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: Cargo Deny (scheduled)
on:
schedule:
- cron: "23 7 * * *"
workflow_dispatch:
workflow_call:
inputs:
candidate_ref:
description: Optional pre-release tag to scan instead of the triggering revision
default: ""
type: string
advisories-only:
description: Run only the dependency advisory check
default: false
type: boolean
env:
CARGO_TERM_COLOR: always
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
packages: read
concurrency:
group: cargo-deny-${{ github.workflow }}-${{ inputs.candidate_ref || github.ref }}
cancel-in-progress: true
jobs:
cargo-deny:
name: Cargo Deny
runs-on: linux-amd64-cpu8
container:
image: ghcr.io/nvidia/openshell/ci:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.candidate_ref && format('refs/tags/{0}', inputs.candidate_ref) || '' }}
- name: Install tools
run: mise install --locked
- name: Check dependencies
if: ${{ !inputs.advisories-only }}
run: mise run rust:deny
- name: Check dependency advisories
if: inputs.advisories-only
run: cargo deny check advisories