mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 05:46:00 +02:00
in-toto-run: add page
This commit is contained in:
parent
7a728b395f
commit
cf48eaba7f
1 changed files with 20 additions and 0 deletions
20
pages/common/in-toto-run.md
Normal file
20
pages/common/in-toto-run.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# 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:
|
||||
|
||||
`in-toto-run -n {{tag}} --products {{.}} -k {{key_file}} -- {{git tag v1.0}}`
|
||||
|
||||
- Create a tarball, storing files as materials and the tarball as product:
|
||||
|
||||
`in-toto-run -n {{package}} -m {{project}} -p {{project.tar.gz}} -- {{tar czf project.tar.gz project}}`
|
||||
|
||||
- Generate signed attestations for review work:
|
||||
|
||||
`in-toto-run -n {{review}} -k {{key_file}} -m {{document.pdf}} -x`
|
||||
|
||||
- Scan the image using Trivy and generate link file:
|
||||
|
||||
`in-toto-run -n {{scan}} -k {{key_file}} -p {{report.json}} -- {{/bin/sh -c "trivy -o report.json -f json <IMAGE>"}}`
|
Loading…
Add table
Reference in a new issue