Skip to content

[CI] chore: add security scanning workflows - #5770

Open
haribabug wants to merge 2 commits into
mainfrom
add-security-scanning
Open

haribabug wants to merge 2 commits into
mainfrom
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.
@haribabug
haribabug requested a review from a team September 22, 2026 18:29
@github-actions github-actions Bot changed the title chore: add security scanning workflows [CI] chore: add security scanning workflows Sep 22, 2026
@github-actions github-actions Bot added the CI label Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
multigpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 5770 --add-label <label>

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to opt this PR out.

@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.

cgoea
cgoea previously approved these changes Sep 25, 2026
@gyohuangxin

Copy link
Copy Markdown
Member

Aiter zizmor scanning workflow passed by: #6296, #6297, #6298, #6299
I will work on fixing the bandit and trivy tests.

@gyohuangxin

Copy link
Copy Markdown
Member

Trivy is fixed by #6301

@github-actions github-actions Bot changed the title [CI] chore: add security scanning workflows [Triton/Gluon] [CI] chore: add security scanning workflows Oct 9, 2026
@Boss2002n
Boss2002n requested a balanced review from Copilot October 9, 2026 17:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The extended-test trigger exposes secrets to PR-controlled workflow code, and several Gitleaks allowlists can suppress real credentials.

2 open findings
What changed in this PR

Adds ROCm-standard security scanning, dependency automation, and CI hardening across the repository.

Changes:

  • Adds PR/weekly security scans, scanner configurations, Trivy suppression, and Dependabot.
  • Pins third-party GitHub Actions to immutable commits.
  • Replaces security-sensitive shell/hash patterns with safer APIs.
File Description
.github/​dependabot.yml Configures GitHub Actions updates.
.github/​scan_tools_configs/​bandit.yml Adds Bandit configuration.
.github/​scan_tools_configs/​gitleaks.toml Adds secret-scanning rules and exemptions.
.github/​scan_tools_configs/​trivy.yml Adds Trivy configuration.
.github/​scan_tools_configs/​zizmor.yml Adds workflow-security suppressions.
.github/​workflows/​actionlint.yaml Pins checkout action.
.github/​workflows/​aiter-release.yaml Pins release workflow actions.
.github/​workflows/​aiter-review-bot.yml Pins review-bot actions.
.github/​workflows/​aiter-test.yaml Pins test and artifact actions.
.github/​workflows/​aiter-triton-board.yaml Pins board automation actions.
.github/​workflows/​amd-ci-job-monitor.yml Pins actions and hardens input handling.
.github/​workflows/​atom-di-ci-smoke-workflow.yaml Pins checkout and artifact actions.
.github/​workflows/​atom-test.yaml Pins checkout and artifact actions.
.github/​workflows/​docs.yml Pins documentation workflow actions.
.github/​workflows/​extended-test.yaml Changes the extended-test trigger.
.github/​workflows/​ffm-bringup.yaml Pins checkout action.
.github/​workflows/​flash_attention_integration.yaml Pins integration workflow actions.
.github/​workflows/​kimi-downstream.yaml Pins checkout and upload actions.
.github/​workflows/​kimi-perf-downstream.yaml Pins checkout and upload actions.
.github/​workflows/​operators-tuning.yaml Pins actions and hardens input handling.
.github/​workflows/​opus-test.yaml Pins checkout and artifact actions.
.github/​workflows/​pr-security-scan.yml Adds pull-request security scanning.
.github/​workflows/​pr-title-tags.yaml Pins GitHub Script.
.github/​workflows/​pr-welcome-comment.yaml Pins GitHub Script.
.github/​workflows/​pre-checks.yaml Pins formatting and setup actions.
.github/​workflows/​prepare-triton-wheel.yaml Pins actions and hardens interpolation.
.github/​workflows/​promote.yaml Pins actions and hardens release inputs.
.github/​workflows/​release-automation.yaml Pins release automation actions.
.github/​workflows/​sglang_downstream.yaml Pins checkout actions.
.github/​workflows/​stale-branches-archive.yml Pins checkout action.
.github/​workflows/​test-network.yaml Pins checkout action.
.github/​workflows/​test-whl.yaml Pins actions and hardens workflow inputs.
.github/​workflows/​triton-test.yaml Pins test workflow actions.
.github/​workflows/​tuning-tests.yaml Pins checkout and artifact actions.
.github/​workflows/​update-split-tests.yaml Pins PR automation actions.
.github/​workflows/​vllm-disagg-ci-smoke-workflow.yaml Pins checkout and artifact actions.
.github/​workflows/​vllm_benchmark.yaml Pins benchmark workflow actions.
.github/​workflows/​weekly-security-scan.yml Adds scheduled SARIF scanning.
.trivyignore.yaml Documents a Dockerfile suppression.
aiter/​fused_moe.py Replaces shell execution with subprocess.
aiter/​fused_moe_dp_shared_expert.py Replaces shell execution with subprocess.
aiter/​ops/​triton/​utils/​_triton/​tuning/​sweep_configs.py Replaces shell-based file writes.
aiter/​ops/​triton/​utils/​_triton/​tuning/​write_best_configs.py Replaces shell-based file removal.
op_tests/​op_benchmarks/​triton/​bench_deepgemm_attention.py Replaces shell file/archive operations.
op_tests/​triton_tests/​test_pa_decode_gluon.py Marks MD5 use as non-security-sensitive.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/extended-test.yaml Outdated

on:
pull_request_target:
pull_request:
Comment on lines +42 to +44
paths = [
'''.*\.lock$''',
]

@brunomazzottiamd brunomazzottiamd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a maintainer of Triton / Gluon backend, I checked the following files:

  • aiter/ops/triton/utils/_triton/tuning/sweep_configs.py
  • aiter/ops/triton/utils/_triton/tuning/write_best_configs.py
  • op_tests/op_benchmarks/triton/bench_deepgemm_attention.py
  • op_tests/triton_tests/test_pa_decode_gluon.py

I requested changes on aiter/ops/triton/utils/_triton/tuning/sweep_configs.py. The other files look good to me!

I don't have the authority or the expertise to review the following parts:

  • .github/* and .trivyignore.yaml - please reach out to AITER CI team
  • aiter/fused_moe.py and aiter/fused_moe_dp_shared_expert.py - please reach out to onwers

@github-actions

Copy link
Copy Markdown
Contributor

Caution

30 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 33 critical or high finding(s) on lines changed by this pull request (coverage incomplete)
Scanner Severity Rule Location Finding
Gitleaks HIGH generic-api-key aiter/ops/flydsl/kernels/mixed_moe_gemm_2stage_common.py:3624 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key aiter/ops/flydsl/kernels/mixed_moe_gemm_2stage_common.py:3624 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key aiter/ops/flydsl/kernels/mixed_moe_gemm_2stage_common.py:3624 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key aiter/ops/flydsl/kernels/mixed_moe_gemm_2stage_common.py:5006 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key aiter/ops/flydsl/kernels/mixed_moe_gemm_2stage_common.py:5006 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key aiter/ops/flydsl/kernels/mixed_moe_gemm_2stage_common.py:5006 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/ck_gemm_moe_2stages_codegen/gemm_moe_tune.py:2230 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/ck_gemm_moe_2stages_codegen/gemm_moe_tune.py:2236 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/ck_gemm_moe_2stages_codegen/gemm_moe_tune.py:2272 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mla/opus/mla_decode_fp8_16mx8_32nx1.hpp:395 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mla/opus/mla_decode_fp8_16mx8_32nx1.hpp:395 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mla/opus/mla_decode_fp8_16mx8_32nx1.hpp:395 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:125 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:125 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:125 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:241 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:241 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:241 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:270 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:270 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:270 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:298 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:298 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:298 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:328 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:328 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key csrc/kernels/mxfp4_moe/moe_mxfp4_aux.cu:328 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key op_tests/triton_tests/attention/test_unified_attention.py:110 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key op_tests/triton_tests/attention/test_unified_attention.py:110 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Gitleaks HIGH generic-api-key op_tests/triton_tests/attention/test_unified_attention.py:110 Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Zizmor HIGH github-app .github/workflows/aiter-triton-board.yaml:51 dangerous use of GitHub App tokens
Zizmor HIGH github-app .github/workflows/release-automation.yaml:60 dangerous use of GitHub App tokens
Zizmor HIGH github-app .github/workflows/update-split-tests.yaml:75 dangerous use of GitHub App tokens

116 medium, low, or unrated finding(s) are not listed; the scan run has them.

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.

@brunomazzottiamd brunomazzottiamd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a maintainer of Triton / Gluon backend, I checked the following files:

  • op_tests/op_benchmarks/triton/bench_deepgemm_attention.py
  • op_tests/triton_tests/test_pa_decode_gluon.py

They look good to me!

I don't have the authority or the expertise to review the other parts. Since they are the bulk of this PR, I won't approve it and leave the approval of the part that I understand as a plain comment. I don't want to get this merged by accident and would be glad to approve it, once it looks good to AITER CI team.

@aiter-bot

aiter-bot commented Nov 2, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision 34b8960d9274 · mode shadow

Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision.

Questions to answer in the PR description

  1. What behavior does this PR change, and why is the existing behavior insufficient?
  2. What did you validate, and what remains unverified? Include commands, hardware/configuration and results.
  3. What permissions and untrusted-input boundary does this CI change have, and can fork PR code or text reach a privileged execution path?
  4. For every changed op_tests/ file, what behavior does it cover and why is it not redundant? Write None if no op test changed.

Edit the PR Self-Review section in the PR description. Include the current revision SHA; this comment refreshes automatically.

Missing or invalid answers

  • FAIL — missing ### Reviewed revision in the PR description
  • FAIL — missing ### Behavior and intent in the PR description
  • FAIL — missing ### Validation and unverified scope in the PR description
  • FAIL — missing ### PR-specific question in the PR description
  • FAIL — missing ### Changed op tests in the PR description
  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA
  • FAIL — Behavior and intent has no substantive answer
  • FAIL — Validation and unverified scope has no substantive answer
  • FAIL — PR-specific question has no substantive answer

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

@cgoea
cgoea force-pushed the add-security-scanning branch from 5a0bad5 to 34b8960 Compare November 10, 2026 18:29
@github-actions github-actions Bot changed the title [Triton/Gluon] [CI] chore: add security scanning workflows [CI] chore: add security scanning workflows Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No activity for 15 days, so this is now labelled stale. A push or a comment clears it; keep-open exempts it. Nothing is closed automatically.

@github-actions github-actions Bot added the stale The PR hasn't been updated in 2 weeks label Nov 26, 2026

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

CI stale The PR hasn't been updated in 2 weeks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants