diff --git a/README.md b/README.md index 9be957f..d4bcd4a 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ jobs: prompt: "Please review the pull request with number ${{ github.event.pull_request.number }} and add comment to it. Please address only the serious issues, not the minor ones. If you didn't find any serious issues, please write 'Looks good to me!'." zencoder_client_id: "${{ secrets.ZENCODER_CLIENT_ID }}" zencoder_client_secret: "${{ secrets.ZENCODER_CLIENT_SECRET }}" - github_token: "${{ secrets.GITHUB_TOKEN }}" + github_token: "${{ secrets.GITHUB_PAT }}" ``` ### Workflow to be triggered from API call or manually @@ -67,7 +67,7 @@ jobs: agent: "${{ inputs.agent }}" zencoder_client_id: "${{ secrets.ZENCODER_CLIENT_ID }}" zencoder_client_secret: "${{ secrets.ZENCODER_CLIENT_SECRET }}" - github_token: "${{ secrets.GITHUB_TOKEN }}" + github_token: "${{ secrets.GITHUB_PAT }}" ``` ## Inputs diff --git a/docs/GITHUB_INTEGRATION_GUIDE.md b/docs/GITHUB_INTEGRATION_GUIDE.md index 472cc44..9fbf616 100644 --- a/docs/GITHUB_INTEGRATION_GUIDE.md +++ b/docs/GITHUB_INTEGRATION_GUIDE.md @@ -221,6 +221,7 @@ Review all open pull requests labeled 'needs-review' and provide feedback - Check workflow file syntax with GitHub's validator - Verify branch protection rules aren't blocking - Ensure workflow file is on default branch + - Some events are not emitted when authorized by default `GITHUB_TOKEN` (see [this discussion](https://github.com/orgs/community/discussions/49257)), make sure you use your own PAT token instead of `GITHUB_TOKEN`. ### Debugging Steps