Add a Rego builtin called `attest.internals.parse_library_definition` for parsing the DOI definition files in https://github.com/docker-library/official-images/tree/master/library. This will allow us to verify DOI provenance fields against these files which are the source of truth for DOI images. This function just defers to https://github.com/docker-library/bashbrew/blob/master/manifest/rfc2822.go.
10 lines
92 B
Rego
10 lines
92 B
Rego
package attest_test
|
|
|
|
import rego.v1
|
|
|
|
import data.attest
|
|
|
|
test_sucess if {
|
|
attest.success
|
|
}
|