Skip to content

Commit

Permalink
revoke own token
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasBassoOcto authored May 23, 2024
1 parent 98378c7 commit cb32904
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/vault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ jobs:
TOKEN=$(jq -r '.value' <<< $TOKEN)
export VAULT_ADDR="https://vault-dev.factory.social.gouv.fr"
VAULT_RESPONSE=$(vault write -format=json auth/github-ci/login role=se-startup-bootstrap jwt=$TOKEN)
echo $(echo $VAULT_RESPONSE | base64)
VAULT_TOKEN=$(echo $VAULT_RESPONSE | jq -r '.auth.client_token')
vault login $VAULT_TOKEN
- name: logout vault
run: |
echo logout
vault token revoke -self

0 comments on commit cb32904

Please sign in to comment.