diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e9f848bad2..65082fda4f 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -14,7 +14,7 @@ jobs: uses: octokit/request-action@v2.x id: check_permissions with: - route: GET /repos/${{ github.repository }}/collaborators/${{ github.actor }}/permission + route: GET /repos/:org/:repo/collaborators/:user/permission env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Debug Permission Response @@ -61,7 +61,7 @@ jobs: uses: octokit/request-action@v2.x id: check_permissions with: - route: GET /repos/${{ github.repository }}/collaborators/${{ github.actor }}/permission + route: GET /repos/:org/:repo/collaborators/:user/permission env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Debug Permission Response