Skip to content

Commit c015eaf

Browse files
authored
ci: use secrets from the source of truth (#493)
1 parent 96fb75f commit c015eaf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/smoke-tests.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
TF_VAR_REPO: "${{ github.repository }}"
3232
SMOKETEST_VERSIONS: "${{ inputs.smoketest_versions || 'latest' }}"
3333
SKIP_DESTROY: 0
34-
EC_API_KEY: ${{ secrets.OBSERVABILITY_EC_API_KEY }}
34+
permissions:
35+
contents: read
36+
id-token: write
3537
steps:
3638
- uses: actions/checkout@v4
3739
- name: Bootstrap Action Workspace
@@ -41,7 +43,13 @@ jobs:
4143
- uses: hashicorp/setup-terraform@v3
4244
with:
4345
terraform_version: 1.2.3
44-
- uses: elastic/oblt-actions/aws/[email protected]
46+
- uses: elastic/oblt-actions/aws/auth@v1
47+
- uses: elastic/oblt-actions/google/auth@v1
48+
- uses: google-github-actions/get-secretmanager-secrets@dc4a1392bad0fd60aee00bb2097e30ef07a1caae # v2.1.3
49+
with:
50+
export_to_environment: true
51+
secrets: |-
52+
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-pro-api-key
4553
- run: make smoketest/run TEST_DIR=./tf
4654
- if: always()
4755
name: Tear down

0 commit comments

Comments
 (0)