Skip to content

Commit c913680

Browse files
fix: add vault step to release github action to retrieve token for version bump in git [EXT-7068] (#2398)
1 parent 22389d0 commit c913680

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
fetch-depth: 0
2828
ref: ${{ github.event.workflow_run.head_branch || github.ref }}
2929

30+
- name: Retrieve Secrets from Vault
31+
id: vault
32+
uses: contentful/vault-github-actions/action@v1
33+
with:
34+
url: ${{ secrets.VAULT_URL }}
35+
template-preset: semantic-release
36+
3037
- name: Setup Node.js
3138
uses: actions/setup-node@v6
3239
with:
@@ -49,7 +56,7 @@ jobs:
4956
echo "npm version: $(npm -v)"
5057
npm run semantic-release
5158
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_TOKEN }}
5360

5461
- name: Get latest release tag
5562
id: get-tag
@@ -71,7 +78,7 @@ jobs:
7178
fi
7279
fi
7380
env:
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_TOKEN }}
7582

7683
- name: Summary
7784
run: |

0 commit comments

Comments
 (0)