Skip to content

Commit

Permalink
fix(ci-cd): use token-bureau (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens authored Jan 7, 2025
1 parent 022e784 commit 54891a7
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ on:
schedule:
- cron: "00 18 * * *"

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

jobs:
fetch:
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@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -48,7 +59,7 @@ jobs:
if: ${{ steps.metadata.outputs.data_status }}
env:
HUSKY: "0"
GITHUB_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
add: "data"
author_name: ${{ secrets.SOCIALGROOVYBOT_NAME }}
Expand All @@ -73,7 +84,7 @@ jobs:
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GITHUB_TOKEN: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
NPM_TOKEN: ${{ secrets.SOCIALGROOVYBOT_NPM_TOKEN }}

- uses: mattermost/action-mattermost-notify@master
Expand Down

0 comments on commit 54891a7

Please sign in to comment.