Skip to content

Commit 5bd9637

Browse files
committed
Fix workflow: Use github.token instead of GITHUB_TOKEN secret
- github.token is automatically provided by GitHub Actions - GITHUB_TOKEN is a reserved secret name that causes conflicts - This fixes the workflow validation error
1 parent 9be20a4 commit 5bd9637

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/issue_comp_link-issue-to-pr.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,11 @@ on:
2727
description: 'PR merged status'
2828
required: true
2929
type: string
30-
secrets:
31-
GITHUB_TOKEN:
32-
description: 'GitHub token'
33-
required: true
34-
3530
jobs:
3631
link-issue:
3732
runs-on: ubuntu-latest
3833
env:
39-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
GH_TOKEN: ${{ github.token }}
4035

4136
steps:
4237
- name: Checkout code

.github/workflows/issue_open-pr.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ jobs:
1515
pr_body: ${{ github.event.pull_request.body }}
1616
pr_author: ${{ github.event.pull_request.user.login }}
1717
pr_merged: ${{ github.event.pull_request.merged }}
18-
secrets:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)