diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d03d111f..025f5912 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,10 +26,19 @@ jobs: outputs: released: ${{ steps.sr.outputs.released }} steps: + - name: Generate app token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.SR_RELEASER_APP_ID }} + private-key: ${{ secrets.SR_RELEASER_PRIVATE_KEY }} + repositories: ${{ github.event.repository.name }} + - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ steps.app-token.outputs.token }} - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -43,7 +52,7 @@ jobs: id: sr uses: urmzd/sr@v2 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ steps.app-token.outputs.token }} force: ${{ inputs.force }} publish: