Skip to content

Replace setup-crane with direct installation - #73

Merged
cpanato merged 1 commit into
chainguard-dev:mainfrom
wistia:remove-setup-crane-dependency
Apr 22, 2026
Merged

Replace setup-crane with direct installation#73
cpanato merged 1 commit into
chainguard-dev:mainfrom
wistia:remove-setup-crane-dependency

Conversation

@chen-anders

Copy link
Copy Markdown
Contributor

In our own org especially after the Trivy supply chain attacks, we've been wanting to be more restrictive with what 3rd-party GitHub actions can run on our workflows. (related issue: #58)

Checksums for crane install obtained from https://github.com/google/go-containerregistry/releases/tag/v0.21.3


Disclaimer: Generated by Claude Code

Remove dependency on imjasonh/setup-crane by directly downloading and installing crane from official google/go-containerregistry releases.

Changes:

  • Download crane v0.21.3 from official GitHub releases
  • Verify SHA256 checksums for security (x86_64 and arm64)
  • Extract directly to ~/.local/bin and add to PATH
  • Authenticate with ghcr.io using inputs.token
  • Includes retry logic for network resilience

No external action dependency required, improving compatibility with restricted GitHub Enterprise environments.

@chen-anders
chen-anders force-pushed the remove-setup-crane-dependency branch 2 times, most recently from e5ae58b to 7810a20 Compare April 2, 2026 08:33
@chen-anders
chen-anders force-pushed the remove-setup-crane-dependency branch from 7810a20 to bca717d Compare April 2, 2026 08:56

@cpanato cpanato left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@cpanato
cpanato merged commit 186d6a5 into chainguard-dev:main Apr 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants