Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit e2f2071

Browse files
ci: SRE-389: Remove PAT token from PR labler (#1136)
* ci: SRE-389: Remove PAT token from PR labler * formating Co-authored-by: Sergey Zhuk <[email protected]>
1 parent 1d7491d commit e2f2071

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/pr-labeler.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,34 @@ on:
1111
branches:
1212
- master
1313
- develop
14+
- 'release/**'
1415
- 'lse-release/**'
16+
- 'ls-release/**'
17+
18+
env:
19+
ACTIONS_STEP_DEBUG: '${{ secrets.ACTIONS_STEP_DEBUG }}'
1520

1621
jobs:
1722
autolabel:
1823
name: "PR label validator"
1924
runs-on: ubuntu-latest
25+
permissions:
26+
pull-requests: write
2027
steps:
28+
2129
- uses: hmarr/[email protected]
22-
- uses: thehanimo/[email protected]
23-
name: "Validate PR's title"
30+
31+
- name: "Validate PR's title"
32+
uses: thehanimo/[email protected]
2433
with:
25-
GITHUB_TOKEN: ${{ secrets.GIT_PAT }}
34+
GITHUB_TOKEN: ${{ github.token }}
2635
pass_on_octokit_error: false
2736
configuration_path: ".github/pr-title-checker-config.json"
28-
- uses: release-drafter/[email protected]
29-
name: "Set PR's label based on title"
37+
38+
- name: "Set PR's label based on title"
39+
uses: release-drafter/[email protected]
3040
with:
3141
disable-releaser: true
3242
config-name: autolabeler.yml
3343
env:
34-
GITHUB_TOKEN: ${{ secrets.GIT_PAT }}
44+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)