diff --git a/README.md b/README.md index 479486c..2b2afb0 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This action sets up the [Kosli](https://kosli.com) [CLI](https://github.com/kosli-dev/cli), on GitHub's hosted Actions runners. -This action can be run on `ubuntu-latest`, `windows-latest`, and `macos-latest` GitHub 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 @@ -15,7 +15,7 @@ Setup the `kosli` CLI: ```yaml steps: -- uses: kosli-dev/setup-cli-action@v2 +- uses: kosli-dev/setup-cli-action@v3 ``` A specific version of the `kosli` CLI can be installed: @@ -23,7 +23,7 @@ A specific version of the `kosli` CLI can be installed: ```yaml steps: - name: setup-kosli-cli - uses: kosli-dev/setup-cli-action@v2 + uses: kosli-dev/setup-cli-action@v3 with: version: 2.11.43 @@ -39,31 +39,31 @@ The actions supports the following inputs: See [Kosli CLI documentation](https://docs.kosli.com/) ```yaml -env: +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: + +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 - + uses: kosli-dev/setup-cli-action@v3 + - name: Attest ECR image provenance - run: + run: kosli attest artifact "${IMAGE_NAME}" --artifact-type=oci ```