Skip to content

Commit f34e64b

Browse files
committed
Update readme to show kosli-attest-artifact instead of kosli-create-flow [ci skip]
1 parent eef256d commit f34e64b

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Kosli, Inc
3+
Copyright (c) 2025 Kosli, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,35 @@ The actions supports the following inputs:
4343
## Example job
4444

4545
```yaml
46-
jobs:
47-
example:
46+
env:
47+
KOSLI_DRY_RUN: ${{ vars.KOSLI_DRY_RUN }} # false
48+
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
49+
KOSLI_ORG: my-org
50+
KOSLI_FLOW: my-flow
51+
KOSLI_TRAIL: ${{ github.sha }}
52+
53+
jobs:
54+
build-image:
4855
runs-on: ubuntu-latest
49-
env:
50-
KOSLI_API_TOKEN: ${{ secrets.MY_KOSLI_API_TOKEN }}
51-
KOSLI_ORG: my-org
5256
steps:
57+
- ...
58+
59+
- name: Build and push Docker image to ECR
60+
id: build
61+
uses: docker/build-push-action@v5
62+
with:
63+
push: true
64+
...
65+
5366
- name: Setup kosli
5467
uses: kosli-dev/setup-cli-action@v2
5568
# uncomment below to install a specific version
5669
# with:
57-
# version: 2.11.2
58-
- name: create flow
59-
run: |
60-
kosli create flow my-flow --use-empty-template
70+
# version: 2.11.5
71+
72+
- name: Attest artifact provenance
73+
run:
74+
kosli attest artifact "${IMAGE_NAME}" --artifact-type=oci
6175
```
6276

6377
## License

0 commit comments

Comments
 (0)