From 928256c6d2602e2b83736395a8e8abf4eb78571b Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Thu, 4 Jul 2024 10:04:36 +0200 Subject: [PATCH] google/auth: Add `project-id` input (#80) --- google/auth/README.md | 1 + google/auth/action.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/google/auth/README.md b/google/auth/README.md index 7df6f97d..374a6ade 100644 --- a/google/auth/README.md +++ b/google/auth/README.md @@ -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 }}` | diff --git a/google/auth/action.yml b/google/auth/action.yml index c32003ae..ce6c8f8e 100644 --- a/google/auth/action.yml +++ b/google/auth/action.yml @@ -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 }} @@ -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 }}