Skip to content

feat(security): onboard security-suite (secret + CodeQL) scanning. - #2589

Open
gmanal wants to merge 1 commit into
NVIDIA:mainfrom
gmanal:enable-security-suite
Open

feat(security): onboard security-suite (secret + CodeQL) scanning.#2589
gmanal wants to merge 1 commit into
NVIDIA:mainfrom
gmanal:enable-security-suite

Conversation

@gmanal

@gmanal gmanal commented Aug 10, 2026

Copy link
Copy Markdown

Description

Onboard NVIDIA security scanning to cuda-python using the centrally maintained NVIDIA/security-workflows surfaces. This uses the security suite — a single pinned reusable workflow that fans out to the individual scanners — rather than one caller per scan. Two complementary controls:

  • Local (advisory): secret-scan-trufflehog pre-commit hook — catches credentials before commit.
  • CI (enforcement): the security suite — server-side Pulse secret scan (blocks on verified secrets) and CodeQL SAST, both explicitly enabled.

Every scan in the suite is opt-in, so this repository runs exactly the two scans named here; scanners added upstream later will not switch on by themselves.

Changes

  • Add .github/workflows/security-suite.yml calling the centralized security suite, on main, ctk-next, and copy-pr-bot pull-request/* branches; the secret scan runs on nv-cpu-general (onboarded for this repo in the enterprise runner config) via the linux-amd64-cpu4 label.
  • Enable both scans explicitly — enable-secret-scan: true and enable-sast-scan: true — so what runs here is visible in this file rather than inherited from upstream defaults.
  • Remove .github/workflows/codeql.yml, superseded by the suite's SAST scan. Both publish code scanning results under the category /language:python, so running them together would put two analyses on every commit that overwrite each other's alerts. The suite performs the same analysis: python, build-mode: none, security-extended queries, on ubuntu-latest.
  • Add the secret-scan-trufflehog pre-commit hook (pinned to security-workflows v0.2.0), skipped on hosted pre-commit.ci which lacks the trufflehog binary.
  • Set secret-failure-policy: unverified explicitly (fail on verified/live secrets, warn on unverified); fails closed on scanner/infra errors.
  • Grant the union of the permissions the reusable workflow declares — including scans this repo does not enable — because GitHub validates the caller's grant before evaluating each scan's condition.
  • Document local setup in CONTRIBUTING.md.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Call the centrally maintained NVIDIA/security-workflows security suite rather
than wiring each scan separately: one pinned reference runs the Pulse secret
scan and CodeQL SAST, both explicitly enabled.

Replace .github/workflows/codeql.yml with the suite's SAST scan. Both publish
code scanning results under the category /language:python, so keeping the local
workflow would put two analyses on every commit that overwrite each other's
alerts. The suite performs the same analysis: python, build-mode none,
security-extended queries, on ubuntu-latest.
@github-actions github-actions Bot added the CI/CD CI/CD infrastructure label Aug 10, 2026
@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD CI/CD infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant