Skip to content

Commit 6221d3d

Browse files
committed
feat(github-actions): allow a credential to be provided for configuring remote bazel setup
Allow an input for a credential to provide authentication for RBE setup.
1 parent 5663ac5 commit 6221d3d

File tree

3 files changed

+69
-44
lines changed

3 files changed

+69
-44
lines changed

github-actions/bazel/configure-remote/action.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,26 @@ inputs:
1212
description: |
1313
Whether to allow remote execution to be configured for Windows. By default,
1414
Windows is only configured to leverage remote caching.
15+
upload_local_results:
16+
default: false
17+
description: |
18+
Whether to enable the flag for uploading the results of location actions into
19+
the remote cache.
20+
google_credential:
21+
description: |
22+
A Google credential to be used as authentication for RBE API usages.
1523
1624
shell:
1725
default: bash
1826
description: Shell to use for executing the configure script.
1927

2028
runs:
21-
using: composite
22-
steps:
23-
- run: node $GITHUB_ACTION_PATH/configure-remote.cjs
24-
env:
25-
BAZELRC_PATH: ${{ inputs.bazelrc }}
26-
ALLOW_WINDOWS_RBE: ${{ inputs.allow_windows_rbe }}
27-
NGAT: 'bKddxrYADouso3haW7lCFA=='
28-
shell: ${{ inputs.shell }}
29+
using: 'node20'
30+
main: $GITHUB_ACTION_PATH/configure-remote.cjs
31+
with:
32+
bazelrc: ${{ inputs.bazelrc }}
33+
allow_windows_rbe: ${{ inputs.allow_windows_rbe }}
34+
upload_local_results: ${{ inputs.upload_local_results }}
35+
google_credential: ${{ inputs.google_credential }}
36+
NGAT: 'bKddxrYADouso3haW7lCFA=='
37+
shell: ${{ inputs.shell }}

0 commit comments

Comments
 (0)