Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,15 +15,15 @@ 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:

```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
Expand All @@ -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
```

Expand Down