diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7d0d91c5..3d384542 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,15 +1,26 @@ name: Release + on: workflow_dispatch: push: branches: [master, main, alpha, beta, next] + +permissions: + id-token: write # Required for OIDC token generation + jobs: release: name: Release 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: SocialGouv/actions/autodevops-release@v1 with: - github-token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }} + github-token: ${{ steps.token.outputs.token }} author-name: ${{ secrets.SOCIALGROOVYBOT_NAME }} author-email: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}