Skip to content

Commit e7813a9

Browse files
feat: default GITHUB_TOKEN to github.token (#579)
* feat: default `GITHUB_TOKEN` to `github.token` * Update README to clarify GITHUB_TOKEN usage Clarify the usage of GITHUB_TOKEN in the README.
1 parent 08e0247 commit e7813a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Use this action in a workflow [triggered by a release](https://docs.github.com/e
88

99
## Inputs
1010

11-
**GITHUB_TOKEN**
11+
**GITHUB_TOKEN** (optional)
1212

1313
A GitHub access token with write access to your repo's issues, such as:
1414

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ inputs:
88
description: |
99
A GitHub personal access token with repo scope, such as
1010
secrets.GITHUB_TOKEN.
11-
required: true
11+
default: ${{ github.token }}
12+
required: false
1213
comment-template:
1314
description: |
1415
Text template for the comment string.

0 commit comments

Comments
 (0)