Skip to content

Commit

Permalink
Make BES auth optional for windows executor CI (#6927)
Browse files Browse the repository at this point in the history
  • Loading branch information
bduffany authored Jun 26, 2024
1 parent 2ce3c0a commit 14d0b10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-executor-win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ jobs:
# - Enable windows symlink helps reduce disk usage.
# Without this, files will be fully copied instead.
run: |
bazelisk --output_user_root=D:/0 --windows_enable_symlinks build --config=untrusted-ci-windows --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} //enterprise/server/cmd/executor:executor
$authArgs = @()
$apiKey = '${{ secrets.BUILDBUDDY_ORG_API_KEY }}'
if ($apiKey) {
$authArgs = @("--remote_header=x-buildbuddy-api-key=$apiKey")
}
bazelisk --output_user_root=D:/0 --windows_enable_symlinks build --config=untrusted-ci-windows @authArgs //enterprise/server/cmd/executor:executor

0 comments on commit 14d0b10

Please sign in to comment.