Skip to content

Commit

Permalink
fix(ci-cd): use token-bureau (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens authored Jan 7, 2025
1 parent 4ef4177 commit 65bb502
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ 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
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
Expand All @@ -35,7 +44,7 @@ jobs:
git tag -f v${{steps.semantic.outputs.new_release_major_version}}
git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git v${{steps.semantic.outputs.new_release_major_version}}
env:
GITHUB_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
GITHUB_TOKEN: ${{ steps.token.outputs.token }}



0 comments on commit 65bb502

Please sign in to comment.