diff --git a/.github/workflows/command-robotpy-pr.yml b/.github/workflows/command-robotpy-pr.yml index 10d49cf675..7fa28eec1c 100644 --- a/.github/workflows/command-robotpy-pr.yml +++ b/.github/workflows/command-robotpy-pr.yml @@ -1,7 +1,7 @@ name: Comment on PR for robotpy on: - pull_request: + pull_request_target: types: - opened paths: @@ -9,12 +9,14 @@ on: jobs: comment: + permissions: + pull-requests: write + runs-on: ubuntu-latest steps: - name: Comment on PR uses: actions/github-script@v7 with: - github-token: ${{ secrets.COMMENT_COMMAND_PAT_TOKEN }} script: | github.rest.issues.createComment({ issue_number: context.issue.number,