Synopsis
To get an attestation from a trail, specify the trail name using the
--trail flag.To get an attestation from an artifact, specify the artifact fingerprint using the
--fingerprint flag.These flags cannot be used together. In both cases the flow must also be specified using the
--flow flag.If there are multiple attestations with the same name on the trail or artifact, a list of all will be returned. You can also get an attestation by its id using the
--attestation-id flag. This cannot be used with the attestation name,
or any of the --flow, --trail or --fingerprint flags.
Flags
Flags inherited from parent commands
Live Example
To view a live example of ‘kosli get attestation’ you can run the commands below (for the cyber-dojo demo organization).Run the commands below and view the output.
export KOSLI_ORG=cyber-dojo export KOSLI_API_TOKEN=Pj_XT2deaVA6V1qrTlthuaWsmjVt4eaHQwqnwqjRO3A # read-only kosli get attestation snyk-container-scan —flow=differ-ci —fingerprint=0cbbe3a6e73e733e8ca4b8813738d68e824badad0508ff20842832b5143b48c0 —output=json
Examples Use Cases
These examples all assume that the flags--api-token, --org, --host, (and --flow, --trail when required), are set/provided.
get an attestation by name from a trail (requires the --trail flag)
get an attestation by name from a trail (requires the --trail flag)
get an attestation by name from an artifact
get an attestation by name from an artifact
get an attestation by its id
get an attestation by its id