Skip to content

Commit

Permalink
fix(ci-cd): use token-bureau (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens authored Jan 7, 2025
1 parent 76e00cc commit b064b66
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/@release.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
name: "Release"

on:
push:
branches:
- master
- beta
- alpha

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

jobs:
release:
runs-on: ubuntu-latest
steps:
# - name: Wait for other checks to succeed
- 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: Wait for other checks to succeed
# uses: lewagon/[email protected]
# with:
# ref: ${{ github.ref }}
Expand All @@ -20,7 +31,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ steps.token.outputs.token }}
fetch-depth: "0" # Pull all commits, required for lerna version

- uses: actions/setup-node@v3
Expand All @@ -47,7 +58,7 @@ jobs:
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GH_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
GH_TOKEN: ${{ steps.token.outputs.token }}
shell: bash
run: |
if [[ "$GITHUB_REF" == *"alpha"* ]]; then
Expand Down

0 comments on commit b064b66

Please sign in to comment.