diff --git a/.github/actions/system-test/action.yml b/.github/actions/system-test/action.yml index 1e93c9ab..046bc978 100644 --- a/.github/actions/system-test/action.yml +++ b/.github/actions/system-test/action.yml @@ -2,26 +2,18 @@ name: system-test description: Steps to run system test -inputs: - workload-identity-provider: - description: 'GCP Workload Identity Provider' - required: true - runs: using: composite steps: - uses: hashicorp/setup-terraform@v3 with: terraform_version: 1.4.6 - - id: gcp-auth - uses: 'google-github-actions/auth@v2' - with: - project_id: 'elastic-observability' - workload_identity_provider: '${{ inputs.workload-identity-provider }}' + # The permissions for this action are set up + # at https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/apm-queue/01-gcp-oidc.tf + - uses: 'elastic/oblt-actions/google/auth@v1' - uses: 'google-github-actions/setup-gcloud@v2' - uses: 'google-github-actions/get-gke-credentials@v2' with: - project_id: ${{ steps.gcp-auth.outputs.project_id }} cluster_name: 'autopilot-oblt' location: 'us-central1' - uses: actions/setup-go@v5 diff --git a/.github/workflows/system-test.yml b/.github/workflows/system-test.yml index 2170e0f2..d2bc56d4 100644 --- a/.github/workflows/system-test.yml +++ b/.github/workflows/system-test.yml @@ -23,5 +23,3 @@ jobs: github.event.pull_request.head.repo.full_name == github.repository ) uses: ./.github/actions/system-test - with: - workload-identity-provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'