Skip to content

Commit

Permalink
[gar-auth] fix create_credentials_file bool
Browse files Browse the repository at this point in the history
  • Loading branch information
rustielin committed Oct 3, 2023
1 parent 418efe2 commit 0374ae3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/test-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./gar-auth
with:
GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
GCP_SERVICE_ACCOUNT_EMAIL: ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }}
create_credentials_file: true

- uses: ./gar-auth
with:
GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
GCP_SERVICE_ACCOUNT_EMAIL: ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }}
create_credentials_file: false
2 changes: 1 addition & 1 deletion gar-auth/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
name: "Authenticate to Google Cloud"
uses: google-github-actions/[email protected]
with:
create_credentials_file: ${{ inputs.create_credentials_file }}
create_credentials_file: ${{ inputs.create_credentials_file == 'true' }}
token_format: "access_token"
workload_identity_provider: ${{ inputs.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ inputs.GCP_SERVICE_ACCOUNT_EMAIL }}
Expand Down

0 comments on commit 0374ae3

Please sign in to comment.