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

Commit 4e66281

Browse files
committed
ci: use token permission
1 parent 0839967 commit 4e66281

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/sync-issue-labels.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Sync issue labels from docs repository
22

33
env:
4-
GH_TOKEN: ${{ secrets.UPDATE_REPO_INFO_PAT }}
4+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55

6+
permissions:
7+
issues: write
68
on:
79
push:
810
branches:
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: Sync repository info from package.json
22

33
env:
4-
GH_TOKEN: ${{ secrets.UPDATE_REPO_INFO_PAT }}
5-
4+
GITHUB_TOKEN: ${{ secrets.UPDATE_REPO_INFO_PAT }}
65
on:
76
push:
8-
branches:
7+
branches:
98
- saga
109
paths:
1110
- "package.json"
@@ -18,12 +17,12 @@ jobs:
1817
steps:
1918
- name: Checkout
2019
uses: actions/checkout@v3
21-
20+
2221
- name: Sync repository description
2322
run: gh repo edit --description "`cat package.json | jq -r '.description'`"
2423

2524
- name: Sync repository topics
2625
run: cat package.json | jq '.keywords[]' | xargs -I'{}' gh repo edit --add-topic {}
2726

2827
- name: Sync homepage
29-
run: gh repo edit --homepage "`cat package.json | jq -r '.homepage'`"
28+
run: gh repo edit --homepage "`cat package.json | jq -r '.homepage'`"

0 commit comments

Comments
 (0)