Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 7ab4b98

Browse files
fix(ci-cd): use token-bureau (#1914)
1 parent 368a723 commit 7ab4b98

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/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: [main, 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@v3
1626
with:
@@ -38,4 +48,4 @@ jobs:
3848
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
3949
GIT_COMMITTER_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
4050
GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
41-
GITHUB_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
51+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}

0 commit comments

Comments
 (0)