Try fix linter with explicit permissions
| @@ -1,6 +1,7 @@ | |||
| 1 | name: 🔀 Pull Request Manager | 1 | name: 🔀 Pull Request Manager |
| 2 | 2 | ||
| 3 | on: | 3 | on: |
| 4 | workflow_dispatch: # Allow to manually call this workflow | ||
| 4 | pull_request_target: | 5 | pull_request_target: |
| 5 | types: [opened, synchronize, reopened, edited, labeled, unlabeled, closed] | 6 | types: [opened, synchronize, reopened, edited, labeled, unlabeled, closed] |
| 6 | pull_request_review_comment: | 7 | pull_request_review_comment: |
| @@ -17,6 +18,12 @@ jobs: | |||
| 17 | # Only needs to run when code is changed | 18 | # Only needs to run when code is changed |
| 18 | if: github.event.action == 'opened' || github.event.action == 'synchronize' | 19 | if: github.event.action == 'opened' || github.event.action == 'synchronize' |
| 19 | 20 | ||
| 21 | # Override permissions, linter likely needs write access to issues | ||
| 22 | permissions: | ||
| 23 | contents: read | ||
| 24 | issues: write | ||
| 25 | pull-requests: write | ||
| 26 | |||
| 20 | steps: | 27 | steps: |
| 21 | - name: Checkout Repository | 28 | - name: Checkout Repository |
| 22 | # Checkout | 29 | # Checkout |