chore: add security scanning workflows #2358
🏷️ CI Guide
Runs automatically on every eligible PR before approval:
Heavy model tests:
| Label | Tests |
|-------|-------|
| ci:full | Run all heavy PR model tests: native ATOM, vLLM, and SGLang |
| ci:atom | Run native ATOM model accuracy tests |
| ci:vllm | Run ATOM vLLM OOT model accuracy tests |
| ci:sglang | Run ATOM SGLang model accuracy tests |
Heavy jobs are skipped when the PR is not approved and no matching ci:* label is present.Add labels via the sidebar or gh pr edit 2358 --add-label <label>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:
For more information about GitHub Code Scanning, check out the documentation.
<!-- rocm-security-gh:pr-findings:v1 -->
[!CAUTION]
3 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.
<details>
<summary><b>Security scan found 3 critical or high finding(s) on lines changed by this pull request (coverage incomplete)</b></summary>
| Scanner | Severity | Rule | Location | Finding |
|---|---|---|---|---|
| Gitleaks | HIGH | generic-api-key | atom/plugin/rtpllm/utils/forward\_context.py:300 | Detected a Generic API Key, potentially exposing access to various services and sensitive operations. |
| Gitleaks | HIGH | generic-api-key | tests/models/deepseek\_v41/fixtures/reference\_manifest.json:6 | Detected a Generic API Key, potentially exposing access to various services and sensitive operations. |
| Gitleaks | HIGH | generic-api-key | tests/models/deepseek\_v41/fixtures/reference\_manifest.json:7 | Detected a Generic API Key, potentially exposing access to various services and sensitive operations. |
Coverage was incomplete:
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._
</details>
Approved these changes.
@gyohuangxin can you merge this security baseline PR. This PR also contains another commit related to this PR "https://github.com/ROCm/ATOM/pull/2640" which has merged.
Can you check the details and merge the security baseline PR
cgoea
haribabug
Security Scanning Workflows Enablement
This PR adds standardized security scanning workflows and configurations from
ROCm/rocm-repo-template.Security Controls
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 configWhy
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