# 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@dd2c410b088af7c0dc8046f3ac9a8f4148492a95 with: egress-policy: block allowed-endpoints: > api.github.com:443 - uses: actions/labeler@e54e5b338fbd6e6cdb5d60f51c22335fc57c401e with: repo-token: "${{ secrets.GITHUB_TOKEN }}"