Skip to content

Automate Go dependency updates and improve security scanning - #95

Merged
sarat-k merged 3 commits into
ROCm:mainfrom
spraveenio:main
Sep 10, 2026
Merged

Automate Go dependency updates and improve security scanning#95
sarat-k merged 3 commits into
ROCm:mainfrom
spraveenio:main

Conversation

@spraveenio

Copy link
Copy Markdown
Contributor

This pull request introduces several improvements to the build and CI infrastructure, focusing on making the Go version configurable and automating dependency management and security scanning. The most significant changes include parameterizing the Go version in build scripts and Dockerfiles, adding automated workflows for dependency updates and security scans, and fixing file naming inconsistencies.

Build system improvements:

  • Made the Go version configurable throughout the build system by extracting it from sw/nic/gpuagent/go.mod and passing it as a build argument in both the Makefiles and Dockerfiles. This ensures consistency and simplifies Go version upgrades. [1] [2] [3] [4] [5] [6] [7]

  • Fixed typos in Dockerfile names (Dokerfile.rhel9 and Dokerfile.ubu2204 renamed to Dockerfile.rhel9 and Dockerfile.ubu2204) for clarity and to prevent build errors. [1] [2] [3]

CI/CD and security automation:

  • Added a Dependabot configuration file to automate dependency update PRs for Docker images, with security and dependencies labels.

  • Introduced a workflow (dependabot-cleanup.yml) to automatically delete merged Dependabot branches, keeping the repository clean.

  • Added a Trivy-based dependency scanning workflow to automatically scan Go dependencies for vulnerabilities on PRs and a weekly schedule, and upload results as SARIF for security review.## Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

spraveenio and others added 2 commits September 10, 2026 08:56
* Add weekly Go dependency CVE automation



* Clean merged Dependabot branches



* Align Go toolchain with builder containers



---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
…on (#6)

* Initial plan

* Disable gomod Dependabot updates causing unresolved generated package errors

Co-authored-by: spraveenio <58961022+spraveenio@users.noreply.github.com>

* Restore gomod Dependabot updates and commit generated Go protobuf package

Co-authored-by: spraveenio <58961022+spraveenio@users.noreply.github.com>

* Apply remaining changes

Co-authored-by: spraveenio <58961022+spraveenio@users.noreply.github.com>

* Keep generated files out of repo and run full build before Trivy dependency scan

Co-authored-by: spraveenio <58961022+spraveenio@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: spraveenio <58961022+spraveenio@users.noreply.github.com>
@spraveenio
spraveenio requested a review from sarat-k September 10, 2026 17:19
* Configure Dependabot Go updates

Co-authored-by: spraveenio <58961022+spraveenio@users.noreply.github.com>

* Fix Dependabot group syntax

Co-authored-by: spraveenio <58961022+spraveenio@users.noreply.github.com>

* Run Trivy on gpuctl in CI

Co-authored-by: spraveenio <58961022+spraveenio@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: spraveenio <58961022+spraveenio@users.noreply.github.com>
@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.

@spraveenio spraveenio added the ci Workflow related changes label Sep 10, 2026
@sarat-k
sarat-k merged commit d8e52aa into ROCm:main Sep 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Workflow related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants