Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

crane-installer

v1.0

crane-installer

package

crane-installer

GitHub Action for installing the crane CLI tool

Installation

Copy and paste the following snippet into your .yml file.

              

- name: crane-installer

uses: IAreKyleW00t/crane-installer@v1.0

Learn more about this action in IAreKyleW00t/crane-installer

Choose a version

crane-installer GitHub Action

Docker Hub GitHub tag (latest SemVer) License

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.


Usage

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

Inputs

input Description Default
crane-release crane release version to be installed latest
install-dir directory to install crane binary $HOME/.crane

Examples

Pinned version

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

Default version

jobs:
  crane:
    runs-on: ubuntu-latest
    steps:
      - name: Install crane
        uses: iarekylew00t/crane-installer@v1
      - name: Check install
        run: crane version

Contributing

Feel free to contribute and make things better by opening an Issue or Pull Request.

License

See LICENSE.