github-actions: undeploy observability deployments using ephemeral GH tokens (#195215)

This commit is contained in:
Victor Martinez 2024-10-07 14:14:50 +02:00 committed by GitHub
parent d5763658c3
commit 103acda747
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }}