Skip to content

Commit

Permalink
fix(ci-cd): use token-bureau
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed Jan 6, 2025
1 parent aff5544 commit bfe7e2a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,20 @@ concurrency:
cancel-in-progress: true
group: pre-release-${{ github.ref }}

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

jobs:
release:
name: Pre-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@v4
with:
Expand All @@ -26,6 +35,6 @@ jobs:
git rebase dev
git push
env:
GITHUB_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}

0 comments on commit bfe7e2a

Please sign in to comment.