-
Notifications
You must be signed in to change notification settings - Fork 102
[CI/CD] Add govulncheck to CI #1416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1416 +/- ##
=======================================
Coverage 85.31% 85.31%
=======================================
Files 102 102
Lines 12972 12972
=======================================
Hits 11067 11067
Misses 1418 1418
Partials 487 487 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
.github/workflows/ci.yml
Outdated
| security-events: write | ||
| with: | ||
| target-branch: ${{ github.event.pull_request.base.ref || github.ref_name }} | ||
| go-version-input: '1.24.10' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to get the golang version from the go.mod file like how we do it for the setup-go action on line 72?
.github/workflows/nightly-scans.yml
Outdated
| uses: ./.github/workflows/vulncheck.yml | ||
| with: | ||
| target-branch: 'dev-v2' | ||
| go-version-input: '1.24.10' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agent V2 is actually on 1.24.9 at the moment. So we need to be able to get the version from the go.mod instead of hardcoding it into the workflows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a check where we read the go version from the go.mod
.github/workflows/vulncheck.yml
Outdated
| on: | ||
| workflow_call: | ||
| inputs: | ||
| go-version-input: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the go-version-input inputs be removed now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
Proposed changes
Adds the
govulncheckaction to our CI workflow to catch and report vulnerabilities to the Security tab.Also adds a
nightly-scans.ymlworkflow to run the vulnerability scan nightly againstmainanddev-v2branches.Checklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTINGdocumentmake install-toolsand have attached any dependency changes to this pull requestREADME.md)