Skip to content

Commit 7721e40

Browse files
fix(ci-cd): use token-bureau (#1762)
1 parent e959e30 commit 7721e40

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/socialgouv-release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,22 @@ on:
55
push:
66
branches: [master, alpha, beta, next]
77

8+
permissions:
9+
id-token: write # Required for OIDC token generation
10+
811
jobs:
912
release:
1013
name: Release
1114
runs-on: ubuntu-latest
1215
steps:
1316

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+
1424
- name: Checkout repository
1525
uses: actions/checkout@v2
1626
with:
@@ -25,4 +35,4 @@ jobs:
2535
@semantic-release/changelog@5.0.1
2636
@semantic-release/git@9.0.0
2737
env:
28-
GITHUB_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
38+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}

0 commit comments

Comments
 (0)