Skip to content

Commit

Permalink
Add comment to tutorials/get_familiar_with_Kosli.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Dec 11, 2023
1 parent 0661915 commit fa584a0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docs.kosli.com/content/tutorials/get_familiar_with_Kosli.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Note:
- The `--name` flag has the value `nginx` which is the (only) artifact
name defined in the file `kosli.yml`.
- The `--build-url` and `--commit-url` flags have dummy values;
in a real installation these would get default values (e.g. from Github Actions).
in a real call these would have default values (e.g. from Github Actions).
```shell {.command}
GIT_COMMIT=$(git rev-parse HEAD)
Expand All @@ -185,6 +185,14 @@ kosli attest artifact nginx:1.21 \
--git-commit $(git rev-parse HEAD)
```
<!--
It is noticeable here that we are providing the git-commit twice;
once for the name of the trail, and once for the actual git-commit.
It is also noticeable that the git-commit is hard-wired to 9f14efa...
in several places, and it will be incorrect whenever the repo gets new git
commit (eg to add the kosli.yml file)
-->
You can verify that you have reported the artifact in your *quickstart-nginx* flow:
```shell {.command}
Expand Down Expand Up @@ -281,10 +289,10 @@ Select the *quickstart* link on left for a detailed view of what is currently ru
Now that you have reported your artifact and what's running in our runtime environment,
you can use the `kosli search` command to find everything Kosli knows about an artifact or a git commit.

For example, you can give Kosli search the git commit SHA which you used when you reported the artifact:
For example, you can give Kosli search the artifact's fingerprint:
```shell {.command}
kosli search 9f14efa0c91807da9a8b1d1d6332c5b3aa24a310
kosli search 9f14efa
```
```plaintext {.light-console}
Expand All @@ -303,4 +311,5 @@ History:
Started running in quickstart#1 environment Tue, 01 Nov 2022 15:55:49 CET
```
Visit the [Kosli Querying](/getting_started/querying/) guide to learn more about the search command.

0 comments on commit fa584a0

Please sign in to comment.