diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml index 9dda4fa..006b5f4 100644 --- a/.github/workflows/auto-author-assign.yml +++ b/.github/workflows/auto-author-assign.yml @@ -13,4 +13,5 @@ jobs: steps: - uses: toshimaru/auto-author-assign@v3.1.0 with: - repo-token: ${{ secrets.GH_PAT }} + # Fall back to the built-in token so the job still works if GH_PAT is unset. + repo-token: ${{ secrets.GH_PAT || github.token }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 32cae12..159d646 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: googleapis/release-please-action@v5 with: - # this assumes that you have created a personal access token - # (PAT) and configured it as a GitHub action secret named - # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). - token: ${{ secrets.GH_PAT }} + # Fall back to the built-in token so the job still works if GH_PAT is unset. + # Note: with the built-in token the release PR will not run the pull_request + # checks, because events created by GITHUB_TOKEN do not trigger workflows. + token: ${{ secrets.GH_PAT || github.token }}