2025-03-14 21:59:59 -06:00
|
|
|
# in-toto-run
|
|
|
|
|
|
|
|
|
|
> Generating link metadata while carrying out a supply chain step.
|
|
|
|
|
> More information: <https://in-toto.readthedocs.io/en/latest/command-line-tools/in-toto-run.html>.
|
|
|
|
|
|
|
|
|
|
- Tag a Git repo and signing the resulting link file:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`in-toto-run {{[-n|--step-name]}} {{tag}} {{[-p|--products]}} {{.}} -k {{key_file}} -- {{git tag v1.0}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a tarball, storing files as materials and the tarball as product:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`in-toto-run {{[-n|--step-name]}} {{package}} {{[-m|--materials]}} {{project}} {{[-p|--products]}} {{project.tar.gz}} -- {{tar czf project.tar.gz project}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Generate signed attestations for review work:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`in-toto-run {{[-n|--step-name]}} {{review}} -k {{key_file}} {{[-m|--materials]}} {{document.pdf}} {{[-x|--no-command]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Scan the image using Trivy and generate link file:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`in-toto-run {{[-n|--step-name]}} {{scan}} -k {{key_file}} {{[-p|--products]}} {{report.json}} -- {{/bin/sh -c "trivy {{[-o|--output]}} report.json {{[-f|--format]}} json <IMAGE>"}}`
|