Skip to content

Commit

Permalink
fix(ci-cd): use token-bureau
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed Jan 6, 2025
1 parent 838ed00 commit 4d16a42
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/review-e2e-linked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@ concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref_name }}

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

jobs:
link-e2e:
name: Link e2e if match dev-**
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
- id: vars
name: Branch check convention
run: |
Expand All @@ -28,7 +37,7 @@ jobs:
if: steps.vars.outputs.ok == 'yes'
uses: actions/checkout@v3
with:
token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ steps.token.outputs.token }}
ref: ${{ steps.vars.output.branch }}

- name: Install dependencies
Expand Down

0 comments on commit 4d16a42

Please sign in to comment.