Part of #54.
Summary
Add .github/workflows/security-checkov.yaml: run Checkov security scanning on PRs and pushes. Source: NVIDIA/nodewright/.github/workflows/security-checkov.yaml.
Behavior (from nodewright)
- Trigger:
pull_request and push to main, filtered to the relevant paths.
- Runs
bridgecrewio/checkov-action@v12.3102.0.
- In nodewright it scans the Helm chart (
framework: helm, directory: chart).
Adaptation required (the key change)
- No Helm chart here; retarget Checkov. This repo has no
chart/. It does have eight package Dockerfiles (nvidia-setup/, nvidia-tuning-gke/, kdump/, copy-fail/, tuned/, shellscript/, tuning/, nvidia-tuned/). Retarget Checkov to:
framework: dockerfile over the repo (or per package), and
framework: github_actions over .github/workflows/** (recommended, since this is a workflow-heavy repo).
Drop the HELM_NAMESPACE env and the helm framework.
- Path filters. Trigger on
**/Dockerfile and .github/workflows/** changes rather than chart/**.
- ci-gate. Same open decision as commit-linting: keep the
ci-gate composed-check job or make checkov directly required. Match whatever pr_build.yaml uses.
Conventions
- SPDX header matching
stale.yaml.
- Keep
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true as nodewright does.
- Pin
bridgecrewio/checkov-action to the version nodewright uses (v12.3102.0).
Acceptance
- Changes to a package
Dockerfile or a workflow trigger a Checkov scan.
- Findings are reported in the PR; severity-to-fail policy is decided (start non-blocking if noisy, then tighten).
Part of #54.
Summary
Add
.github/workflows/security-checkov.yaml: run Checkov security scanning on PRs and pushes. Source:NVIDIA/nodewright/.github/workflows/security-checkov.yaml.Behavior (from nodewright)
pull_requestandpushtomain, filtered to the relevant paths.bridgecrewio/checkov-action@v12.3102.0.framework: helm,directory: chart).Adaptation required (the key change)
chart/. It does have eight packageDockerfiles (nvidia-setup/,nvidia-tuning-gke/,kdump/,copy-fail/,tuned/,shellscript/,tuning/,nvidia-tuned/). Retarget Checkov to:framework: dockerfileover the repo (or per package), andframework: github_actionsover.github/workflows/**(recommended, since this is a workflow-heavy repo).Drop the
HELM_NAMESPACEenv and thehelmframework.**/Dockerfileand.github/workflows/**changes rather thanchart/**.ci-gatecomposed-check job or makecheckovdirectly required. Match whateverpr_build.yamluses.Conventions
stale.yaml.FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: trueas nodewright does.bridgecrewio/checkov-actionto the version nodewright uses (v12.3102.0).Acceptance
Dockerfileor a workflow trigger a Checkov scan.