8000 feat: verify installer downloads with cosign by scop · Pull Request #5806 · golangci/golangci-lint · GitHub
[go: up one dir, main page]

Skip to content

feat: verify installer downloads with cosign #5806

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scop
Copy link
Contributor
@scop scop commented May 15, 2025

Depends on #5793

@ldez ldez self-requested a review May 15, 2025 19:28
@ldez ldez added the area: install Issue relates to installation or downloading process label May 15, 2025
return 0
fi
checksums=$1
http_download "${tmpdir}/${CHECKSUM_COSIGN_BUNDLE}" "${CHECKSUM_COSIGN_BUNDLE_URL}"
Copy link
Contributor Author
@scop scop May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail for releases that don't have hose signed checksum .cosign.bundles. I suppose we should address it somehow, but I'm not sure what would be the best way. Some thoughts:

  • Hardcode some version comparison, don't try it for versions known to not have it? This is somewhat a chore to do in the shell script.
  • Skip verify if downloading the cosign bundle fails due to HTTP 404? Not sure if there's a good way to implement that for wget.

An example of this problem can be seen in the CI failure of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: install Issue relates to installation or downloading process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0