Skip to content

Commit fbf41b4

Browse files
committed
different env
1 parent ed27513 commit fbf41b4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26968,9 +26968,9 @@ function parseBuildId(stdout) {
2696826968
if (config.ref) {
2696926969
startArgs.push('--ref', config.ref);
2697026970
}
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);
2697426974
}
2697526975
const spawnRet = spawnSync(cliPath, startArgs);
2697626976
checkSpawnSync(spawnRet);

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ function parseBuildId(stdout) {
122122
if (config.ref) {
123123
startArgs.push('--ref', config.ref);
124124
}
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);
128128
}
129129
const spawnRet = spawnSync(cliPath, startArgs);
130130
checkSpawnSync(spawnRet);

0 commit comments

Comments
 (0)