-
-
Notifications
You must be signed in to change notification settings - Fork 989
33 lines (30 loc) · 788 Bytes
/
backport.yml
File metadata and controls
33 lines (30 loc) · 788 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: Backport
on:
pull_request_target:
types:
- closed
- labeled
permissions:
contents: read
jobs:
backport:
env:
BACKPORT_TOKEN: ${{ secrets.BACKPORT_TOKEN }}
permissions:
pull-requests: write
runs-on: ubuntu-latest
name: Backport
steps:
- name: Harden Runner
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
disable-sudo-and-containers: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
- name: Backport Bot
id: backport
uses: m-kuhn/backport@7f3cab83e4b3b26aefcffda21851c3dc3d389f45 #v1.2.7
with:
github_token: ${{ env.BACKPORT_TOKEN }}