Repository navigation
Conversation
Follow-up to open-telemetry#2693. open-telemetry#2693 runs make govulncheck in ci-collector.yml. This change also runs it in the two paths that build a release layer: - .github/actions/build-collector-layer (release-layer-collector.yml) - publish-layer-collector.yml (custom builds, with the same BUILDTAGS) If the toolchain or a dependency has a called vulnerability, the layer is not built.
|
|
Comment on lines
+25
to
+30
| - name: Check for known vulnerabilities | ||
| shell: bash | ||
| run: make -C collector govulncheck GOARCH="${INPUTS_ARCHITECTURE}" | ||
| env: | ||
| INPUTS_ARCHITECTURE: ${{ inputs.architecture }} | ||
|
|
Contributor
There was a problem hiding this comment.
Would it be better to use https://github.com/golang/govulncheck-action, export the data as sarif & upload it to github? That way we can see the issues and potentially have it as a dedicated workflow which runs periodically?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #2693.
Changes
#2693 runs
make govulncheckinci-collector.yml. This PR also runs it before the layer is built in the two release paths:.github/actions/build-collector-layer(used byrelease-layer-collector.yml)publish-layer-collector.yml(custom builds, with the sameBUILDTAGS)Thus, a release does not ship a collector with a called vulnerability in the Go stdlib or in a dependency. The CI check runs only when
collector/**changes, but a new Go CVE can be published between two PRs.If you do not want a vulnerability to block a release, close this PR. The CI check from #2693 stays.
Verification
The
govulnchecktarget is the same as onmain(from #2693). Locally (linux/arm64),make govulncheckexits 0 with Go 1.26.10 and exits 3 with Go 1.26.0.AI (Claude Code) helped with this change.
🤖 Generated with Claude Code