Skip to content

Commit

Permalink
github-actions: undeploy observability deployments using ephemeral GH…
Browse files Browse the repository at this point in the history
… tokens (#195215)
  • Loading branch information
v1v authored Oct 7, 2024
1 parent d576365 commit 103acda
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/undeploy-my-kibana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'ci:project-deploy-observability')
runs-on: ubuntu-latest
steps:
- uses: elastic/apm-pipeline-library/.github/actions/github-token@current
with:
url: ${{ secrets.OBLT_VAULT_ADDR }}
roleId: ${{ secrets.OBLT_VAULT_ROLE_ID }}
secretId: ${{ secrets.OBLT_VAULT_SECRET_ID }}

- uses: elastic/apm-pipeline-library/.github/actions/undeploy-my-kibana@current
- uses: elastic/oblt-actions/oblt-cli/undeploy-my-kibana@v1
with:
token: ${{ env.GITHUB_TOKEN }}
github-app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
github-app-private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}

0 comments on commit 103acda

Please sign in to comment.