Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci-cd): use token-bureau #2393

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ name: 🔖 Release
on:
workflow_dispatch:

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

env:
GIT_AUTHOR_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GITHUB_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}

jobs:
release:
Expand All @@ -20,6 +22,14 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false

- 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: Set up Node
uses: actions/setup-node@v4
with:
Expand All @@ -38,7 +48,10 @@ jobs:
git_commit_gpgsign: true
git_push_gpgsign: false
git_tag_gpgsign: true

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
run: |
export PATH="$(pwd)/.github/bin/:$PATH"
yarn semantic-release
Loading