Skip to content

Commit

Permalink
ci: use secrets from the source of truth (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jun 25, 2024
1 parent 96fb75f commit c015eaf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
TF_VAR_REPO: "${{ github.repository }}"
SMOKETEST_VERSIONS: "${{ inputs.smoketest_versions || 'latest' }}"
SKIP_DESTROY: 0
EC_API_KEY: ${{ secrets.OBSERVABILITY_EC_API_KEY }}
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Bootstrap Action Workspace
Expand All @@ -41,7 +43,13 @@ jobs:
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.2.3
- uses: elastic/oblt-actions/aws/[email protected]
- uses: elastic/oblt-actions/aws/auth@v1
- uses: elastic/oblt-actions/google/auth@v1
- uses: google-github-actions/get-secretmanager-secrets@dc4a1392bad0fd60aee00bb2097e30ef07a1caae # v2.1.3
with:
export_to_environment: true
secrets: |-
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-pro-api-key
- run: make smoketest/run TEST_DIR=./tf
- if: always()
name: Tear down
Expand Down

0 comments on commit c015eaf

Please sign in to comment.