Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pkg/attest/provenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,14 @@ func (pa ProvenanceAttestor) createCurrentProvenance(ctx context.Context, commit
curProvPred.Controls = controlStatus.Controls

// At the very least provenance is available starting now. :)
curProvPred.AddControl(&provenance.Control{Name: slsa.ProvenanceAvailable.String(), Since: timestamppb.New(curTime)})
// ... indeed, but don't set the `since`` date because doing so breaks
// checking against policies.
// See https://github.com/slsa-framework/slsa-source-poc/issues/272
curProvPred.AddControl(
&provenance.Control{
Name: slsa.ProvenanceAvailable.String(),
},
)

return addPredToStatement(&curProvPred, provenance.SourceProvPredicateType, commit)
}
Expand Down
Loading