# Applies labels to pull requests based on paths & files modified in the pull request. # # .github/labeler.yml contains the list of labels & files / folders to match, see: # https://github.com/actions/labeler/blob/master/README.md name: PR Labeler on: pull_request_target: permissions: contents: read jobs: label: permissions: contents: read # for actions/labeler to determine modified files pull-requests: write # for actions/labeler to add labels to PRs runs-on: ubuntu-latest steps: - name: Harden Runner uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34 with: egress-policy: block allowed-endpoints: > api.github.com:443 - uses: actions/labeler@5c7539237e04b714afd8ad9b4aed733815b9fab4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}"