diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 682bb0838..d2f39c0af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,10 +8,10 @@ on: # Permet aussi de déclencher manuellement depuis GitHub Actions UI workflow_dispatch: +# The release pushes with the GH_TOKEN PAT (an admin, so it bypasses the +# "CI required" ruleset); the generated token stays read-only. permissions: - contents: write - issues: write - pull-requests: write + contents: read jobs: release: @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v4 @@ -44,5 +44,5 @@ jobs: - name: Release env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} run: npx semantic-release