| 1 | name: "Pull Request Labeler" |
| 2 | on: |
| 3 | pull_request_target: |
| 4 | types: [opened, reopened] |
| 5 | |
| 6 | permissions: |
| 7 | contents: read |
| 8 | |
| 9 | jobs: |
| 10 | labeler: |
| 11 | permissions: |
| 12 | pull-requests: write # Labeler needs to be able to add labels to PRs. |
| 13 | runs-on: ubuntu-latest |
| 14 | steps: |
| 15 | - name: Harden Runner |
| 16 | uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 |
| 17 | with: |
| 18 | egress-policy: audit |
| 19 | |
| 20 | - uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0 |
| 21 | env: |
| 22 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |