-
Notifications
You must be signed in to change notification settings - Fork 218
Enable security scanning via NVIDIA/security-workflows suite #2430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,46 @@ | ||||||
| # SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||||||
| # SPDX-License-Identifier: Apache-2.0 | ||||||
| # | ||||||
| # CI security scanning via the NVIDIA/security-workflows suite: Pulse secret scan + CodeQL SAST. | ||||||
| # Pulse runs on Linux nv-gha-runners. | ||||||
| # Pinned to security-workflows v0.3.0. | ||||||
|
|
||||||
|
Comment on lines
+5
to
+7
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Let's please remove these comments that don't add information (they are obvious from the code) and are likely to become out of date as this configuration changes over time. |
||||||
| name: security suite | ||||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| branches: | ||||||
| - "main" | ||||||
| - "release/*" | ||||||
| - "pull-request/[0-9]+" | ||||||
| workflow_dispatch: | ||||||
|
|
||||||
| concurrency: | ||||||
| group: ${{ github.workflow }}-${{ github.ref }} | ||||||
| cancel-in-progress: true | ||||||
|
|
||||||
| permissions: {} | ||||||
|
|
||||||
| jobs: | ||||||
| security-suite: | ||||||
| # Pulse needs nv-gha-runners + Vault/nvcr vars; skip on forks. | ||||||
| if: github.repository == 'NVIDIA/cuvs' | ||||||
| # The caller must grant every permission the reusable workflow declares, including | ||||||
| # scans this repo does not enable — GitHub validates the grant before evaluating | ||||||
| # each scan's condition. | ||||||
| permissions: | ||||||
| actions: read | ||||||
| contents: read | ||||||
| id-token: write # OIDC -> Vault -> nvcr.io image pull | ||||||
| security-events: write # publish redacted SARIF to code scanning | ||||||
| uses: NVIDIA/security-workflows/.github/workflows/security-suite.yml@711025b090f2aa728da576700750b195d1e816dc # v0.3.0 | ||||||
| with: | ||||||
| enable-secret-scan: true | ||||||
| enable-sast-scan: true | ||||||
| secret-runs-on: linux-amd64-cpu4 | ||||||
| # Set the policy explicitly so enforcement can't drift with upstream defaults. | ||||||
| # unverified — fail on verified/live secrets; warn on unverified [default] | ||||||
| # strict — fail on any finding (verified or unverified) | ||||||
| # all — warn only; never fail the job on findings | ||||||
| secret-failure-policy: unverified | ||||||
| sast-languages: '["python","actions"]' | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Let's alphabetize this, please. Also, I couldn't find documentation on the available options for this at https://github.com/NVIDIA/security-workflows ... are there more? This repo has Bash, C++, Go, Java, and Rust code too. |
||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,13 @@ | |||||||||||||
| # SPDX-License-Identifier: Apache-2.0 | ||||||||||||||
|
|
||||||||||||||
| repos: | ||||||||||||||
| # Runs first so a leaked credential blocks the commit before any formatter runs. | ||||||||||||||
| # Self-installing: pre-commit downloads a pinned, checksum-verified trufflehog into | ||||||||||||||
| # the hook environment on first use. CI enforces the same class of finding via Pulse. | ||||||||||||||
| - repo: https://github.com/NVIDIA/security-workflows | ||||||||||||||
|
Comment on lines
+5
to
+8
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Let's remove this comment that explains how |
||||||||||||||
| rev: v0.3.0 | ||||||||||||||
| hooks: | ||||||||||||||
| - id: secret-scan-trufflehog | ||||||||||||||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||||||||||||||
| rev: v6.0.0 | ||||||||||||||
| hooks: | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add this file to all the
changed-fileslists in https://github.com/NVIDIA/cuvs/blob/main/.github/workflows/pr.yaml (preserve alphabetical order).We shouldn't need to trigger cuVS's expensive GPU-using CI on PRs that only change this file.