Skip to content

Commit c1a431d

Browse files
committed
fix(ci): use GITHUB_TOKEN for GitHub CLI in workflow
Signed-off-by: Hpsy <136253594+HauntPsy777@users.noreply.github.com>
1 parent 95d333b commit c1a431d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/triage_issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- name: Get project data
1212
env:
13-
GITHUB_TOKEN: ${{ secrets.PAT }}
13+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1414
run: |
1515
gh api graphql -f query='
1616
query {
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Add issue to project
4141
env:
42-
GITHUB_TOKEN: ${{ secrets.PAT }}
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
ISSUE_ID: ${{ github.event.issue.node_id }}
4444
run: |
4545
item_id="$( gh api graphql -f query='

.github/workflows/triage_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- name: Get project data
1212
env:
13-
GITHUB_TOKEN: ${{ secrets.PAT }}
13+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1414
run: |
1515
gh api graphql -f query='
1616
query {
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Add PR to project
4141
env:
42-
GITHUB_TOKEN: ${{ secrets.PAT }}
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
PR_ID: ${{ github.event.pull_request.node_id }}
4444
run: |
4545
item_id="$( gh api graphql -f query='
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Set fields
5757
env:
58-
GITHUB_TOKEN: ${{ secrets.PAT }}
58+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
run: |
6060
gh api graphql -f query='
6161
mutation (

0 commit comments

Comments
 (0)