Skip to content

ci: use bazel environment for BuildBuddy secret#26895

Merged
bolinfest merged 1 commit into
mainfrom
pr26895
Jun 7, 2026
Merged

ci: use bazel environment for BuildBuddy secret#26895
bolinfest merged 1 commit into
mainfrom
pr26895

Conversation

@bolinfest

@bolinfest bolinfest commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

Why

BUILDBUDDY_API_KEY now lives in the bazel GitHub Actions environment as an environment secret. Jobs that need BuildBuddy credentials must opt into that environment so ${{ secrets.BUILDBUDDY_API_KEY }} resolves from the protected environment secret instead of relying on an unscoped repository/organization secret.

This follows the same environment-secret migration pattern as #26466.

What Changed

  • Attach each workflow job that reads BUILDBUDDY_API_KEY to the bazel environment.
  • Set deployment: false on those job-level environment blocks.

deployment: false lets the job enter the bazel environment to access its environment secrets without creating GitHub deployment records for these CI jobs. That keeps the environment as a secret/access-control boundary without making ordinary Bazel CI runs look like deploys.

Validation

  • Parsed the modified workflow YAML files with Ruby's YAML parser.
  • Checked the modified workflow files for trailing whitespace.

@bolinfest bolinfest requested a review from shijie-oai June 7, 2026 16:18
@bolinfest bolinfest merged commit 2ee3358 into main Jun 7, 2026
46 checks passed
@bolinfest bolinfest deleted the pr26895 branch June 7, 2026 16:24
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant