File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26968,9 +26968,9 @@ function parseBuildId(stdout) {
26968
26968
if (config.ref) {
26969
26969
startArgs.push('--ref', config.ref);
26970
26970
}
26971
- if (process.env.GITHUB_TOKEN ) {
26972
- console.log('using GITHUB_TOKEN from environment as checkout token');
26973
- startArgs.push('--token', process.env.GITHUB_TOKEN );
26971
+ if (process.env.ACTIONS_RUNTIME_TOKEN ) {
26972
+ console.log('using ACTIONS_RUNTIME_TOKEN from environment as checkout token');
26973
+ startArgs.push('--token', process.env.ACTIONS_RUNTIME_TOKEN );
26974
26974
}
26975
26975
const spawnRet = spawnSync(cliPath, startArgs);
26976
26976
checkSpawnSync(spawnRet);
Original file line number Diff line number Diff line change @@ -122,9 +122,9 @@ function parseBuildId(stdout) {
122
122
if ( config . ref ) {
123
123
startArgs . push ( '--ref' , config . ref ) ;
124
124
}
125
- if ( process . env . GITHUB_TOKEN ) {
126
- console . log ( 'using GITHUB_TOKEN from environment as checkout token' ) ;
127
- startArgs . push ( '--token' , process . env . GITHUB_TOKEN ) ;
125
+ if ( process . env . ACTIONS_RUNTIME_TOKEN ) {
126
+ console . log ( 'using ACTIONS_RUNTIME_TOKEN from environment as checkout token' ) ;
127
+ startArgs . push ( '--token' , process . env . ACTIONS_RUNTIME_TOKEN ) ;
128
128
}
129
129
const spawnRet = spawnSync ( cliPath , startArgs ) ;
130
130
checkSpawnSync ( spawnRet ) ;
You can’t perform that action at this time.
0 commit comments