-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 795 Bytes
/
Copy pathlabeler.yml
File metadata and controls
33 lines (26 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: PR Labeler
on:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: labeler-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions: {}
jobs:
label:
name: Label PR
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Harden runner
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
- name: Label PR based on changed paths
uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"