Skip to content

Commit 29be46e

Browse files
committed
build: logging if github token is used to download node
1 parent 0cfef9d commit 29be46e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src-build/downloadNodeBinary.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ async function downloadNodeBinary(platform, arch, maxRetries = 3) {
6666
};
6767
// Only add the Authorization header if GH_TOKEN is set
6868
if (GH_TOKEN) {
69+
console.log("Using GH_TOKEN passed in from github actions.");
6970
config.headers = {
7071
'Authorization': `Bearer ${GH_TOKEN}`
7172
};
73+
} else {
74+
console.warn("GH_TOKEN not passed in from github actions, using unauthorized fetch.");
7275
}
7376

7477
const { data } = await axios(config);

0 commit comments

Comments
 (0)