Skip to content

Commit

Permalink
google/auth: Add project-id input (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek authored Jul 4, 2024
1 parent 8613d6b commit 928256c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions google/auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ GCP Workload Identity Pool Provider ID we use for Elastic Observability reposito
| Name | Description | Required | Default |
|------------------|------------------------|----------|----------------------------|
| `project-number` | The GCP project number | `false` | `8560181848` |
| `project-id` | The GCP project ID | `false` | `elastic-observability` |
| `repository` | The repository name | `false` | `${{ github.repository }}` |
<!--/inputs-->

Expand Down
5 changes: 4 additions & 1 deletion google/auth/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ inputs:
project-number:
description: 'The GCP project number'
default: '8560181848'
project-id:
description: 'The GCP project ID'
default: 'elastic-observability'
repository:
description: 'The repository name'
default: ${{ github.repository }}
Expand Down Expand Up @@ -44,6 +47,6 @@ runs:
PROJECT_NUMBER: ${{ inputs.project-number }}
- uses: google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa # v2.1.3
with:
project_id: 'elastic-observability'
project_id: ${{ inputs.project-id }}
workload_identity_provider: ${{ steps.generate-workload-identity-pool-provider-id.outputs.workload_identity_provider_id }}
request_reason: ${{ github.workflow_ref }}

0 comments on commit 928256c

Please sign in to comment.