policy: add artifact attestation builtin support

Add artifact_attestation(http, filename) and wire verifier support for
artifact bundle checks. Add docker_github_builder_bundle helper rule.

Handle runtime unknown http.checksum after eval so metadata resolve is
requested when checksum is missing.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2026-02-20 08:56:39 -08:00
parent 7d3b6988c2
commit ac9e4c512c
7 changed files with 266 additions and 9 deletions
+3 -2
View File
@@ -64,10 +64,11 @@ func TestRuntimeUnknownInputRefs(t *testing.T) {
st := &state{
Unknowns: map[string]struct{}{
funcVerifyGitSignature: {},
funcVerifyGitSignature: {},
funcArtifactAttestation: {},
},
}
require.Equal(t, []string{"git.commit"}, runtimeUnknownInputRefs(st))
require.Equal(t, []string{"git.commit", "http.checksum"}, runtimeUnknownInputRefs(st))
}
func TestMissingInputRefsWithRuntimeUnknowns(t *testing.T) {