GitHub Action
crane-installer
This GitHub Action enables you to interacting with remote images and registries using crane
. This action will verify the integrity of the crane
release during installation using SLSA 3 provenance.
For a quick start guide on the usage of crane
, please refer to https://github.com/google/go-containerregistry/blob/main/cmd/crane/recipes.md. For available crane releases, see https://github.com/google/go-containerregistry/releases.
This action currently supports GitHub-provided Linux runners (self-hosted runners may not work). MacOS and Windows runners currently have issues with the slsa-verifier/actions/installer
Add the following entry to your Github workflow YAML file:
uses: iarekylew00t/crane-installer@v1
with:
crane-release: v0.14.0 # optional
input | Description | Default |
---|---|---|
crane-release |
crane release version to be installed |
latest |
install-dir |
directory to install crane binary |
$HOME/.crane |
jobs:
crane:
runs-on: ubuntu-latest
steps:
- name: Install crane
uses: iarekylew00t/crane-installer@v1
with:
crane-release: v0.14.0 # optional
- name: Check install
run: crane version
jobs:
crane:
runs-on: ubuntu-latest
steps:
- name: Install crane
uses: iarekylew00t/crane-installer@v1
- name: Check install
run: crane version
Feel free to contribute and make things better by opening an Issue or Pull Request.
See LICENSE.