Skip to content

Commit

Permalink
ci: use GitHub app for ephemeral tokens (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Sep 20, 2024
1 parent 4a195e1 commit b7c42d7
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,24 @@ jobs:
id: bootstrap
uses: ./.github/workflows/bootstrap

- uses: elastic/oblt-actions/google/auth@v1.13.0
- uses: elastic/oblt-actions/google/auth@v1

- uses: elastic/oblt-actions/oblt-cli/[email protected]
- name: Get token
id: get_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
github-token: ${{ secrets.OBLT_CLI_GITHUB_TOKEN }}
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
permissions: >-
{
"contents": "read"
}
repositories: >-
["observability-test-environments"]
- uses: elastic/oblt-actions/oblt-cli/cluster-credentials@v1
with:
github-token: ${{ steps.get_token.outputs.token }}
cluster-name: ${{ env.SERVERLESS_PROJECT }}

- uses: google-github-actions/get-secretmanager-secrets@95a0b09b8348ef3d02c68c6ba5662a037e78d713 # v2.1.4
Expand Down

0 comments on commit b7c42d7

Please sign in to comment.