Skip to content

Commit

Permalink
fix(ci-cd): use token-bureau (#1914)
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens authored Feb 3, 2025
1 parent 368a723 commit 7ab4b98
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ on:
push:
branches: [main, alpha, beta, next]

permissions:
id-token: write # Required for OIDC token generation

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:

- name: Get GitHub App Token
id: token
uses: SocialGouv/token-bureau@main
with:
token-bureau-url: https://token-bureau.fabrique.social.gouv.fr
audience: socialgouv

- name: Checkout repository
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -38,4 +48,4 @@ jobs:
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GITHUB_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
GITHUB_TOKEN: ${{ steps.token.outputs.token }}

0 comments on commit 7ab4b98

Please sign in to comment.