mirror of
https://github.com/irongut/CodeCoverageSummary.git
synced 2026-05-14 22:20:13 +02:00
31 lines
865 B
YAML
31 lines
865 B
YAML
# 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: block
|
|
allowed-endpoints: >
|
|
api.github.com:443
|
|
|
|
- uses: actions/labeler@472c5d3aaacde439785e94966eb2e545627f4935
|
|
with:
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|