Repository navigation
✨ Add intoto results format - #1702
Merged
Merged
Conversation
2 tasks done
There was a problem hiding this comment.
🟡 Changes recommended
Update the action description and image tag before approval.
2 open findings
What changed in this PR
Adds intoto result formatting through Scorecard’s attestation API and documents the new option.
Changes:
- Adds in-toto formatting and test coverage.
- Updates README documentation.
- Advertises
intotoin action metadata.
| File | Summary |
|---|---|
README.md |
Documents the intoto format. |
internal/scorecard/format.go |
Adds in-toto output handling. |
internal/scorecard/format_test.go |
Tests in-toto formatting. |
action.yaml |
Advertises intoto; the description should list all supported formats (nit, 2 votes), and the pinned image must include this formatter before advertising it (moderate, 2 votes). |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This commit adds support for the missing "intoto" value in the results_format input. The formatter delegates to scorecard's Result.AsInToto, wrapping the JSON results in an in-toto attestation statement just as the scorecard binary does with --format=intoto. It also updates the readme with the value and adds it in action.yaml Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Scorecard v5.6.0 validates in-toto statements before writing them, and the subject digest is the scanned commit, so the test fixture needs a commit SHA; without one, the intoto case fails against the Scorecard version on main. Also gofmt the test table, and list all three output formats in the action description. Assisted-by: LLM Signed-off-by: Stephen Augustus <foo@auggie.dev>
justaugustus
force-pushed
the
intoto-formatter
branch
from
October 11, 2026 23:23
3d28e7a to
93e1889
Compare
justaugustus
enabled auto-merge (squash)
October 11, 2026 23:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR adds support for the missing "intoto" value in the
results_formatinput. The formatter delegates to scorecard'sResult.AsInToto, wrapping the JSON results in an in-toto attestation statement just as the scorecard binary does with--format=intoto.It also updates the readme with the value and adds it in action.yaml