Skip to content

Conversation

@ericcornelissen
Copy link
Collaborator

Create a CI workflow that triggers for new releases and uses the Go CLI to get that release, this makes it so the Go Module database indexes the new version of the packages.

Doing so records the versions checksum in sum.golang.org to prevent tampering and also enables bots to start updating ghasum as a tool dependency.

Create a CI workflow that triggers for new releases and uses the Go CLI
to get that release, this makes it so the Go Module database indexes the
new version of the packages.

Doing so records the versions checksum in sum.golang.org to prevent
tampering and also enables bots to start updating ghasum as a tool
dependency.
@ericcornelissen ericcornelissen added the ci/cd Relates to ci/cd label Jan 6, 2026
run: |
WORKFLOW=$(echo "$WORKFLOW" | cut -d '@' -f 1 | cut -d '/' -f 3-5)
go run ./cmd/ghasum verify -cache /home/runner/work/_actions -no-evict -offline "$WORKFLOW:$JOB"
- name: Verify action checksums
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Incorrect name

Suggested change
- name: Verify action checksums
- name: Index ${{ github.ref_name }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd Relates to ci/cd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants