fix: force set token

This commit is contained in:
Tom Hu 2024-05-20 18:39:23 +07:00
parent 52bd105ad4
commit 70a4cf0e19
No known key found for this signature in database
GPG key ID: 79155678363963D2
3 changed files with 7 additions and 19 deletions

View file

@ -99,9 +99,7 @@ const buildCommitExec = async (): Promise<{
});
if (token) {
commitOptions.env.CODECOV_TOKEN = token;
}
commitOptions.env.CODECOV_TOKEN = token;
if (commitParent) {
commitExecArgs.push('--parent-sha', `${commitParent}`);
}
@ -188,9 +186,7 @@ const buildReportExec = async (): Promise<{
});
if (token) {
reportOptions.env.CODECOV_TOKEN = token;
}
reportOptions.env.CODECOV_TOKEN = token;
reportExecArgs.push('--git-service', `${gitService}`);
if (overrideCommit) {
@ -285,9 +281,7 @@ const buildUploadExec = async (): Promise<{
envVarsArg.push(envVarClean);
}
}
if (token) {
uploadOptions.env.CODECOV_TOKEN = token;
}
uploadOptions.env.CODECOV_TOKEN = token;
if (disableFileFixes) {
uploadExecArgs.push('--disable-file-fixes');
}