Skip to content

chore: add security scanning workflows - #656

Open
haribabug wants to merge 3 commits into
develop_deprecatedfrom
add-security-scanning
Open

haribabug wants to merge 3 commits into
develop_deprecatedfrom
add-security-scanning

Conversation

@haribabug

Copy link
Copy Markdown

Security Scanning Workflows Enablement

This PR adds standardized security scanning workflows and configurations from ROCm/rocm-repo-template.

Security Controls

  • PR Security Scan
  • Weekly Security Scan
  • Dependabot
  • CodeQL, Bandit, Gitleaks, Trivy, and Zizmor

Files added / updated

  • .github/workflows/pr-security-scan.yml — scans every pull request
  • .github/workflows/weekly-security-scan.yml — scheduled weekly scan
  • .github/dependabot.yml — automated dependency updates
  • .github/scan_tools_configs/bandit.yml — Python static analysis config
  • .github/scan_tools_configs/gitleaks.toml — secret detection config
  • .github/scan_tools_configs/trivy.yml — container/dependency vulnerability config
  • .github/scan_tools_configs/zizmor.yml — GitHub Actions security config

Why

This change aligns this repository with the ROCm GitHub Organization Security Baseline and enables consistent security controls across ROCm repositories.


For more details, refer ROCm GitHub Org Security Controls Baseline Architecture

Support/Questions: Teams Channel ROCm Security Discussions

Copies standardised security scanning config from
ROCm/rocm-repo-template.
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Syncs .github/dependabot.yml with the latest version from
ROCm/rocm-repo-template.
Syncs 6 security scanning file(s) with the latest version from
ROCm/rocm-repo-template.
@github-actions

Copy link
Copy Markdown

Caution

254 potential secret finding(s) were committed in this pull request. Treat each credential as compromised and revoke or rotate it now, even if a later commit removed it. Deleting the line or force-pushing does not undo the leak: the commits stay reachable from this pull request and from every clone or fork, and automated scanners harvest secrets pushed to public repositories within minutes.

If a finding is a test fixture or a false positive, allowlist it in the configuration of the scanner that reported it.

Security scan found 254 critical or high finding(s) on lines changed by this pull request (coverage incomplete)
Scanner Severity Rule Location Finding
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:110 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:115 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:119 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:124 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:129 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:140 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:143 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:147 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:155 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:158 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:161 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:167 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:170 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:181 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:184 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:187 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:190 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:194 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:197 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:202 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:205 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:208 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:211 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:214 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:222 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:225 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:226 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:229 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:231 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:232 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:234 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:235 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:237 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:238 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:241 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:243 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:244 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:246 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:247 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:249 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:250 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:252 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:253 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:255 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:256 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:258 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:259 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:263 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:264 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key library/solution_map/gfx908_rocfft_solution_map.dat:268 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

204 additional finding(s) are omitted from this comment.

Coverage was incomplete:

  • Security scan / Security scanners concluded with failure.

View the security scan run for complete reports.

“New” means the finding is located in a changed file on an added or modified line; it is not a base-versus-head findings delta.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants