slsa-verifier
Verify provenance from SLSA compliant builders.
Installation
dagger install github.com/jedevc/daggerverse-sagikazarmark/slsa-verifier@a104424df38ca8b0b758f699dcfeeb0c2210cc2e
Entrypoint
Return Type
SlsaVerifier !
Arguments
Name | Type | Description |
---|---|---|
version | String | SLSA verifier version. (default: latest version) |
Example
dagger -m github.com/jedevc/daggerverse-sagikazarmark/slsa-verifier@a104424df38ca8b0b758f699dcfeeb0c2210cc2e call \
func (m *myModule) example() *SlsaVerifier {
return dag.
SlsaVerifier()
}
@function
def example() -> dag.SlsaVerifier:
return (
dag.slsa_verifier()
)
@func()
example(): SlsaVerifier {
return dag
.slsaVerifier()
}
Types
SlsaVerifier 🔗
verifyArtifact() 🔗
Verifies SLSA provenance on artifact blobs given as arguments (assuming same provenance).
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
artifacts | [File ! ] ! | - | Artifacts to verify. |
provenance | File ! | - | Provenance file. |
sourceUri | String ! | - | Expected source repository that should have produced the binary, e.g. github.com/some/repo |
builderId | String | - | The unique builder ID who created the provenance. |
sourceBranch | String | - | Expected branch the binary was compiled from. |
sourceTag | String | - | Expected tag the binary was compiled from. |
sourceVersionedTag | String | - | Expected version the binary was compiled from. Uses semantic version to match the tag. |
Example
dagger -m github.com/jedevc/daggerverse-sagikazarmark/slsa-verifier@a104424df38ca8b0b758f699dcfeeb0c2210cc2e call \
verify-artifact --provenance file:path --source-uri string
func (m *myModule) example(artifacts []*File, provenance *File, sourceUri string) *Container {
return dag.
SlsaVerifier().
VerifyArtifact(artifacts, provenance, sourceUri)
}
@function
def example(artifacts: List[dagger.File], provenance: dagger.File, source_uri: str) -> dagger.Container:
return (
dag.slsa_verifier()
.verify_artifact(artifacts, provenance, source_uri)
)
@func()
example(artifacts: File[], provenance: File, sourceUri: string): Container {
return dag
.slsaVerifier()
.verifyArtifact(artifacts, provenance, sourceUri)
}