-
Notifications
You must be signed in to change notification settings - Fork 101
[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 86.38% 86.27% -0.11%
==========================================
Files 102 102
Lines 12622 12622
==========================================
- Hits 10903 10890 -13
- Misses 1238 1253 +15
+ Partials 481 479 -2 see 6 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
| 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
| 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?
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 againstmainnanddev-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)