File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 5151
5252# ## `token`
5353
54- **Optional** Access token to the repository. Uses `${{ github.token }}` by default.
54+ **Optional** Access token to the repository. If not set, the action will use the default GitHub Actions token at runtime .
5555
5656# ## `subject_pattern`
5757
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ inputs:
1414 default : " true"
1515 token :
1616 required : false
17- description : Access token to the repository. Uses `${{ github.token }}` by default.
18- default : ${{ github.token }}
17+ description : Access token to the repository. If not set, the action will use the default GitHub Actions token at runtime.
1918 subject_pattern :
2019 required : false
2120 description : A regex pattern to validate the subject of the commit message.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ let once = false;
88
99function getClient ( ) : InstanceType < typeof GitHub > {
1010 if ( once ) return octokit ;
11- const token = getInput ( "token" ) ;
11+ const token = getInput ( "token" ) || process . env [ "GITHUB_TOKEN" ] || "" ;
1212 setSecret ( token ) ;
1313
1414 octokit = getOctokit ( token ) ;
You can’t perform that action at this time.
0 commit comments