-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci-cd): use token-bureau (#1067)
- Loading branch information
1 parent
76e00cc
commit b064b66
Showing
1 changed file
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
|
@@ -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 | ||
|
@@ -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 | ||
|