Skip to content

Commit 6af4e87

Browse files
committed
ci: use secrets from the source of truth
1 parent aef4b04 commit 6af4e87

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/smoke-tests.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ jobs:
3030
TF_VAR_REPO: "${{ github.repository }}"
3131
SMOKETEST_VERSIONS: "${{ inputs.smoketest_versions || 'latest' }}"
3232
SKIP_DESTROY: 0
33-
# TODO: replace with keyless (likely AWS and Google Secrets Manager)
33+
# TODO: replace with keyless (likely AWS)
3434
AWS_ACCESS_KEY_ID: ${{ secrets.OBSERVABILITY_AWS_ACCESS_KEY_ID }}
3535
AWS_SECRET_ACCESS_KEY: ${{ secrets.OBSERVABILITY_AWS_SECRET_ACCESS_KEY }}
36-
EC_API_KEY: ${{ secrets.OBSERVABILITY_EC_API_KEY }}
3736
steps:
3837
- uses: actions/checkout@v4
3938
- name: Bootstrap Action Workspace
@@ -43,6 +42,13 @@ jobs:
4342
- uses: hashicorp/setup-terraform@v3
4443
with:
4544
terraform_version: 1.2.3
45+
46+
- uses: google-github-actions/get-secretmanager-secrets@dc4a1392bad0fd60aee00bb2097e30ef07a1caae # v2.1.3
47+
with:
48+
export_to_environment: true
49+
secrets: |-
50+
EC_API_KEY:elastic-observability/secrets/elastic-cloud-observability-team-pro-api-key
51+
4652
- run: make smoketest/run TEST_DIR=./tf
4753
- if: always()
4854
name: Tear down

0 commit comments

Comments
 (0)