Add Secret scanning workflow - #6390
Conversation
|
| Filename | Overview |
|---|---|
| .github/workflows/security.yml | New TruffleHog secret-scan workflow; action is properly pinned to a full commit SHA, but fetch-depth may be silently ignored by the composite action, and only pull_request triggers are configured (missing push and schedule). |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PR opened/updated targeting main] --> B{pull_request trigger}
B --> C[Job: security runs-on: ubuntu-latest]
C --> D[uses: NVIDIA/security-workflows secret-scan-trufflehog @ pinned SHA]
D --> E{fetch-depth: 0 recognized input?}
E -->|Yes| F[Full history checkout TruffleHog scans all commits]
E -->|No - silently ignored| G[Shallow checkout TruffleHog scans PR diff only]
F --> H{Secrets found?}
G --> H
H -->|Yes| I[Job fails]
H -->|No| J[Job passes]
Reviews (1): Last reviewed commit: "Add Secret scaning workflow" | Re-trigger Greptile
611a0f0 to
392634f
Compare
- adds NVIDIA/security-workflows/.github/workflows/secret-scan-trufflehog.yml workflow Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
392634f to
e5f7daa
Compare
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
42b59af to
8316dd6
Compare
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Category:
Other (e.g. Documentation, Tests, Configuration)
Description:
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A