From b9935c9885535d9da4baa9beb50eec604a154c64 Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Sun, 9 Jun 2024 09:37:30 -0400 Subject: [PATCH] [ci] Fix robotpy PR commenting (#6723) --- .github/workflows/command-robotpy-pr.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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,