-
Notifications
You must be signed in to change notification settings - Fork 43
39 lines (34 loc) · 1.03 KB
/
pr-labels.yml
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
34
35
36
37
38
39
name: Add PR labels
on:
pull_request:
types: [opened, edited]
branches-ignore:
- 'dependabot/**'
- 'renovate/**'
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
issues: read
pull-requests: write
jobs:
copy-labels:
runs-on: ubuntu-latest
name: Copy labels from linked issues
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.5.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
yarnpkg.com:443
github.com:443
nightly.yarnpkg.com:443
nodejs.org:443
objects.githubusercontent.com:443
registry.yarnpkg.com:443
registry.npmjs.org:443
54.185.253.63:443
- name: copy-labels
uses: michalvankodev/copy-issue-labels@f54e957e58fc976eba5ffa36e1a1030572dbb78d # v1.3.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}