Skip to content

setup-kosli-cli

Actions
Install the Kosli CLI on Github Actions runners
v2.0.11
Latest
Verified creator
Star (5)

Tags

 (1)

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

setup-kosli-cli

Sets up the Kosli CLI for GitHub Actions runners

About

This action sets up the Kosli CLI, on GitHub's hosted Actions runners.

This action can be run on ubuntu-latest, windows-latest, and macos-latest GitHub Actions runners, and will install and expose a specified version of the kosli CLI on the runner environment.

Usage

Setup the kosli CLI:

steps:
- uses: kosli-dev/setup-cli-action@v2

A specific version of the kosli CLI can be installed:

steps:
- name: setup-kosli-cli
  uses: kosli-dev/setup-cli-action@v2
  with:
    version:
      2.11.35

Inputs

The actions supports the following inputs:

  • version: The version of kosli to install, defaulting to 2.11.35

Example job

See Kosli CLI documentation

env: 
  KOSLI_DRY_RUN: ${{ vars.KOSLI_DRY_RUN }}  # false
  KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
  KOSLI_ORG: my-org
  KOSLI_FLOW: my-flow
  KOSLI_TRAIL: ${{ github.sha }}
  
jobs:  
  build-image:
    runs-on: ubuntu-latest
    steps:
      - ...
        
      - name: Build and push Docker image to ECR
        id: build
        uses: docker/build-push-action@v5
        with:
          push: true
          ...
      
      - name: Setup kosli
        uses: kosli-dev/setup-cli-action@v2
        
      - name: Attest ECR image provenance
        run: 
          kosli attest artifact "${IMAGE_NAME}" --artifact-type=oci

License

MIT.

setup-kosli-cli is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install the Kosli CLI on Github Actions runners
v2.0.11
Latest

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Tags

 (1)

setup-kosli-cli is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.