diff --git a/.github/workflows/Comment-on-PR.yml b/.github/workflows/Comment-on-PR.yml index 933d65f..d1a52e5 100644 --- a/.github/workflows/Comment-on-PR.yml +++ b/.github/workflows/Comment-on-PR.yml @@ -1,3 +1,5 @@ +name: Comment on PR + on: pull_request_target: paths-ignore: @@ -10,13 +12,11 @@ jobs: comment_on_pr: runs-on: ubuntu-latest name: PR comment + permissions: + pull-requests: write steps: - - name: Checkout - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - name: Comment on PR uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1 with: message: | Thank you for contributing! :wave: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/Notify-Convention-Change.yml b/.github/workflows/Notify-Convention-Change.yml index fec826b..9a5005c 100644 --- a/.github/workflows/Notify-Convention-Change.yml +++ b/.github/workflows/Notify-Convention-Change.yml @@ -19,8 +19,9 @@ jobs: notify: runs-on: ubuntu-latest needs: org-check + permissions: + pull-requests: write steps: - - uses: actions/checkout@main - name: Comment on PR uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1 with: @@ -43,4 +44,3 @@ jobs: @Adithyak1998 @innagarc @ShibaniRout - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}