Skip to content

Commit b064b66

Browse files
fix(ci-cd): use token-bureau (#1067)
1 parent 76e00cc commit b064b66

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/@release.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
name: "Release"
2+
23
on:
34
push:
45
branches:
56
- master
67
- beta
78
- alpha
89

10+
permissions:
11+
id-token: write # Required for OIDC token generation
12+
913
jobs:
1014
release:
1115
runs-on: ubuntu-latest
1216
steps:
13-
# - name: Wait for other checks to succeed
17+
- name: Get GitHub App Token
18+
id: token
19+
uses: SocialGouv/token-bureau@main
20+
with:
21+
token-bureau-url: https://token-bureau.fabrique.social.gouv.fr
22+
audience: socialgouv
23+
24+
# - name: Wait for other checks to succeed
1425
# uses: lewagon/wait-on-check-action@v0.2
1526
# with:
1627
# ref: ${{ github.ref }}
@@ -20,7 +31,7 @@ jobs:
2031
- name: Checkout repository
2132
uses: actions/checkout@v3
2233
with:
23-
token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
34+
token: ${{ steps.token.outputs.token }}
2435
fetch-depth: "0" # Pull all commits, required for lerna version
2536

2637
- uses: actions/setup-node@v3
@@ -47,7 +58,7 @@ jobs:
4758
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
4859
GIT_COMMITTER_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
4960
GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
50-
GH_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
61+
GH_TOKEN: ${{ steps.token.outputs.token }}
5162
shell: bash
5263
run: |
5364
if [[ "$GITHUB_REF" == *"alpha"* ]]; then

0 commit comments

Comments
 (0)