Skip to content

Commit

Permalink
.github/workflows: Pass BUILDBUDDY_ORG_API_KEY to ci-bazel as a secret
Browse files Browse the repository at this point in the history
Interestingly, because `ci-bazel.yml` is technically a "reusable" workflow, so the secret must be explicitly specified to be allowed in the child workflow.
  • Loading branch information
ivucica authored May 13, 2024
1 parent 4edd452 commit 9c74d6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Bazel CI

on:
workflow_call:
secrets:
BUILDBUDDY_ORG_API_KEY:
required: false

# Not using 'inputs' here, since we take no inputs at this time -- just the 'github' context.
# Note: on type workflow_run commit message would be github.event.workflow_run.head_commit.message
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ jobs:

bazel:
uses: ./.github/workflows/ci-bazel.yml
secrets:
BUILDBUDDY_ORG_API_KEY: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}

0 comments on commit 9c74d6f

Please sign in to comment.