Skip to content

ci: use secrets from the source of truth #493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading