[rw] Only run attestation if entering to SCILo
Attestations were being generated for all packages. While stuff gets
outputted to stdout, the attestations aren't actually valid because
they're not entered into SCILo. So you just have a bunch of well-formed
text, but the text itself isn't valid because SCILo doesn't have record
of the attestation.
Because attestations only make sense when they are entered in SCILo,
only builders with `upload_bcid_attestation` which places attestations
in SCILo will actually attempt to create an attestation. Only
attestations in SCILo will be attached to CIPD package metadata.
Change-Id: Ib3a2aaca978cffefb3a5d76667ebe8198de7979f
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/946412
Fuchsia-Auto-Submit: Chris Lewis <cflewis@google.com>
Reviewed-by: Nathan Mulcahey <nmulcahey@google.com>
Commit-Queue: Chris Lewis <cflewis@google.com>
3 files changed