File tree Expand file tree Collapse file tree 5 files changed +30
-9
lines changed
Expand file tree Collapse file tree 5 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 1919 required : false
2020 type : string
2121 default : ' "ubuntu-latest"'
22- secrets :
23- CHECKOUT_TOKEN :
22+ checkout-token :
2423 required : false
24+ type : string
25+ default : ${{ github.token }}
2526
2627jobs :
2728 unit :
3839 uses : actions/checkout@v5
3940 with :
4041 submodules : recursive
41- token : ${{ secrets.CHECKOUT_TOKEN }}
42+ token : ${{ inputs.checkout-token }}
4243 - name : Extend the GitHub context
4344 id : github
4445 env :
Original file line number Diff line number Diff line change 2929 required : false
3030 type : string
3131 default : ' ["ubuntu", "windows", "macos"]'
32+ checkout-token :
33+ required : false
34+ type : string
35+ default : ${{ github.token }}
3236 secrets :
3337 CODECOV_TOKEN :
3438 required : false
35- CHECKOUT_TOKEN :
36- required : false
3739
3840defaults :
3941 run :
7072 uses : actions/checkout@v5
7173 with :
7274 submodules : recursive
73- token : ${{ secrets.CHECKOUT_TOKEN }}
75+ token : ${{ inputs.checkout-token }}
7476 - name : Check out the latest stable version of Go
7577 id : stable
7678 uses : actions/setup-go@v5
Original file line number Diff line number Diff line change 1414 required : false
1515 type : string
1616 default : ' /'
17+ env :
18+ required : false
19+ type : string
1720 runner :
1821 required : false
1922 type : string
2023 default : ' "ubuntu-latest"'
24+ checkout-token :
25+ required : false
26+ type : string
27+ default : ${{ github.token }}
2128 outputs :
2229 json :
2330 description : JSON aggregation of release.json artifacts
Original file line number Diff line number Diff line change 1818 required : false
1919 type : boolean
2020 default : false
21+ env :
22+ required : false
23+ type : string
2124 runner :
2225 required : false
2326 type : string
2427 default : ' "ubuntu-latest"'
28+ checkout-token :
29+ required : false
30+ type : string
31+ default : ${{ github.token }}
32+ release-token :
33+ required : false
34+ type : string
35+ default : ${{ github.token }}
2536 outputs :
2637 json :
2738 description : JSON aggregation of release.json artifacts
@@ -160,7 +171,7 @@ jobs:
160171 generate_release_notes : true
161172 target_commitish : ${{ github.sha }}
162173 make_latest : ${{ steps.version.outputs.prefix == 'v' && steps.version.outputs.suffix == '' && steps.version.outputs.tag == steps.latest.outputs.latest }}
163- token : ${{ secrets.UCI_GITHUB_TOKEN || github. token }}
174+ token : ${{ secrets.UCI_GITHUB_TOKEN || inputs.release- token }}
164175 - name : Create release.json
165176 if : steps.release.outputs.id != ''
166177 id : json
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
77## Unreleased
88### Added
9- - ` env ` input support to ` go-test ` and ` go -check` workflows
10- - ` CHECKOUT_TOKEN ` secret support to ` go-test ` and ` go -check` workflows
9+ - ` env ` input support to ` go-test ` , ` go-check ` , ` releaser ` and ` release -check` workflows
10+ - ` checkout-token ` input support to ` go-test ` , ` go-check ` , ` releaser ` and ` release -check` workflows
1111- custom ` runner ` configuration to most workflows
1212- ` os-versions ` input support to ` go-test ` workflow
1313
You can’t perform that action at this time.
0 commit comments