Files
alangou dfb0f4f917 ci(security): temporarily remove Codex from release scans (#4469)
* ci(security): temporarily make release Codex scans advisory

Signed-off-by: Adrien Langou <alangou@nvidia.com>

* ci(security): remove Codex from release scans

Signed-off-by: Adrien Langou <alangou@nvidia.com>

---------

Signed-off-by: Adrien Langou <alangou@nvidia.com>
2026-10-13 15:44:26 +00:00

100 lines
2.7 KiB
YAML

# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: Security Scan
on:
workflow_dispatch:
inputs:
candidate_ref:
description: Release tag to scan
required: true
type: string
fail-on-static-findings:
description: Fail when CodeQL, Trivy, or Zizmor reports HIGH/CRITICAL findings
default: true
type: boolean
images:
description: Newline-separated image references for Trivy
default: ""
type: string
charts:
description: Newline-separated packaged Helm chart OCI references for Trivy
default: ""
type: string
workflow_call:
inputs:
candidate_ref:
description: Release tag to scan
required: true
type: string
fail-on-static-findings:
description: Fail when CodeQL, Trivy, or Zizmor reports HIGH/CRITICAL findings
default: true
type: boolean
images:
description: Newline-separated image references for Trivy
default: ""
type: string
charts:
description: Newline-separated packaged Helm chart OCI references for Trivy
default: ""
type: string
secrets:
CACHIX_AUTH_TOKEN:
required: false
permissions:
contents: read
# Only the finding threshold is overridable; execution failures remain fatal.
jobs:
codeql:
name: CodeQL
uses: ./.github/workflows/codeql.yml
permissions:
contents: read
security-events: write
with:
candidate_ref: ${{ inputs.candidate_ref }}
fail-on-findings: ${{ inputs.fail-on-static-findings }}
trivy:
name: Trivy
uses: ./.github/workflows/trivy-scan.yml
permissions:
contents: read
packages: read
security-events: write
with:
candidate_ref: ${{ inputs.candidate_ref }}
fail-on-findings: ${{ inputs.fail-on-static-findings }}
severity: HIGH,CRITICAL
ignore-unfixed: false
images: ${{ inputs.images }}
charts: ${{ inputs.charts }}
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
cargo-deny:
name: Cargo Deny
uses: ./.github/workflows/cargo-deny.yml
permissions:
contents: read
packages: read
with:
candidate_ref: ${{ inputs.candidate_ref }}
advisories-only: true
workflow-security:
name: Actionlint and Zizmor
uses: ./.github/workflows/workflow-security.yml
permissions:
contents: read
security-events: write
with:
candidate_ref: ${{ inputs.candidate_ref }}
fail-on-findings: ${{ inputs.fail-on-static-findings }}
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}