github-action: use pull_request_target to access the secrets (#182773)

Use `pull_request_target` to access the GitHub secrets to destroy the
oblt-test-env created previously.

It's secured enough; it does not run any changes from any PR but does
some other automation
This commit is contained in:
Victor Martinez 2024-05-07 12:16:18 +02:00 committed by GitHub
parent 8a3ce75f45
commit 72bf25dba6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@
name: undeploy-my-kibana
on:
pull_request:
pull_request_target:
types: [closed]
permissions: