# 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@74b568e8591fbb3115c70f3436a0c6b0909a8504 with: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - uses: actions/labeler@472c5d3aaacde439785e94966eb2e545627f4935 with: repo-token: "${{ secrets.GITHUB_TOKEN }}"