-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.56 KB
/
create-labels.yml
File metadata and controls
46 lines (40 loc) · 1.56 KB
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
40
41
42
43
44
45
46
---
name: Pipeline - Create labels
on:
workflow_dispatch:
jobs:
# More info: https://github.com/EndBug/label-sync.
labels:
runs-on: ubuntu-latest
steps:
# More info: https://github.com/step-security/harden-runner.
- name: Harden Runner
id: harden_runner
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
raw.githubusercontent.com:443
# More info: https://github.com/peter-murray/workflow-application-token-action.
- name: Get token
id: get_token
uses: peter-murray/workflow-application-token-action@8e1ba3bf1619726336414f1014e37f17fbadf1db
with:
application_id: ${{ secrets.ID_CREATELABELBOT }}
application_private_key: ${{ secrets.PEM_CREATELABELBOT }}
# More info: https://github.com/actions/checkout.
- name: Checkout & Authentication
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
with:
token: ${{ steps.get_token.outputs.token }}
persist-credentials: false
fetch-depth: 0
- name: Creation de labels
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a
with:
delete-other-labels: true
config-file: 'https://raw.githubusercontent.com/wr-projects/github-template/main/.github/config/workflows/create-labels.yml'
token: ${{ steps.get_token.outputs.token }}