[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
tree: 8a582f57f426897ca9cf2ca00c21b4b0fdade746
  1. artifacts/
  2. buildbucket/
  3. checkout/
  4. cmd/
  5. execution/
  6. flagutil/
  7. functools/
  8. gerrit/
  9. gitiles/
  10. monorail/
  11. rpcutil/
  12. scripts/
  13. slsa/
  14. third_party/
  15. vendor/
  16. .gitignore
  17. AUTHORS
  18. go.mod
  19. go.sum
  20. LICENSE
  21. manifest
  22. PATENTS
  23. README.md
README.md

infra

This repo contains tools and config files necessary to run infrastructure related to builds, code review, version control, and continuous integrations.