Repository navigation
feat: add static security scanning to CI - #1934
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the CI pipeline by adding static security scanning capabilities to detect security vulnerabilities in both the codebase and its dependencies. The changes include integrating gosec for static code analysis, govulncheck for dependency vulnerability scanning, and updating the Go version to address security issues.
- Added gosec linter to golangci-lint configuration for static security analysis
- Added GitHub Actions workflow for automated vulnerability checking with govulncheck
- Added
make govulnchecktarget for local security testing - Updated Go version from 1.25.4 to 1.25.5 across multiple configuration files
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.golangci.yml |
Added gosec linter to the enabled linters list for security scanning |
.github/workflows/vulnerability-check.yml |
New workflow that runs govulncheck on push and pull requests to detect dependency vulnerabilities |
Makefile |
Added govulncheck target to enable local vulnerability scanning |
go.mod |
Updated Go version to 1.25.5 |
test/e2e/go.mod |
Updated Go version to 1.25.5 for e2e tests |
.github/workflows/release-github.yml |
Updated Go version to 1.25.5 for release builds |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add vulnerability-check.yml workflow with govulncheck - Add govulncheck target to Makefile - Update Go version to 1.25.5 to fix vulnerabilities Signed-off-by: bupd <[email protected]>
Signed-off-by: bupd <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1934 +/- ##
==========================================
+ Coverage 87.18% 87.22% +0.03%
==========================================
Files 143 143
Lines 5540 5540
==========================================
+ Hits 4830 4832 +2
+ Misses 423 421 -2
Partials 287 287 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@TerryHowe Thank you for the approval! All CI checks are passing. Could this be merged when you have a moment? 🙏 |
What this PR does / why we need it:
Adds vulnerability scanning to the ORAS CI pipeline:
.github/workflows/vulnerability-check.yml) that runs on PRs and pushes to main/release branches, scanning Go dependencies for known vulnerabilitiesmake govulnchecktarget for running vulnerability scans locally before pushingThis complements the existing CodeQL analysis by adding Go-specific vulnerability detection for dependencies.
Which issue(s) this PR fixes
Please check the following list: