Merge pull request #1475 from jedevc/attest-warn-duplicate

buildflags: error on duplicate attest field
pull/1458/head
Tõnis Tiigi 2 years ago committed by GitHub
commit 53d88a79ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,6 +29,9 @@ func ParseAttests(in []string) (map[string]*string, error) {
} }
k := "attest:" + attestType k := "attest:" + attestType
if _, ok := out[k]; ok {
return nil, errors.Errorf("duplicate attestation field %s", attestType)
}
if enabled { if enabled {
out[k] = &in out[k] = &in
} else { } else {

Loading…
Cancel
Save