Skip to content

Commit

Permalink
fix: pass in tokenless
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed May 22, 2024
1 parent 1649099 commit d70aeba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32353,7 +32353,7 @@ const isPullRequestFromFork = () => {
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
if (isPullRequestFromFork()) {
core.info('==> Fork detected, tokenless uploading used');
return Promise.resolve('');
return Promise.resolve('tokenless');
}
let token = core.getInput('token');
let url = core.getInput('url');
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/buildExec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const isPullRequestFromFork = (): boolean => {
const getToken = async (): Promise<string> => {
if (isPullRequestFromFork()) {
core.info('==> Fork detected, tokenless uploading used');
return Promise.resolve('');
return Promise.resolve('tokenless');
}
let token = core.getInput('token');
let url = core.getInput('url');
Expand Down Expand Up @@ -184,7 +184,6 @@ const buildReportExec = async (): Promise<{
GITHUB_HEAD_REF: process.env.GITHUB_HEAD_REF || '',
});


reportOptions.env.CODECOV_TOKEN = token;
reportExecArgs.push('--git-service', `${gitService}`);

Expand Down

0 comments on commit d70aeba

Please sign in to comment.