mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-07 19:47:25 +00:00
feat: add support for tokenless v3
This commit is contained in:
parent
feaf700b2a
commit
6c9378e306
3 changed files with 3 additions and 1 deletions
1
dist/index.js
vendored
1
dist/index.js
vendored
|
|
@ -32353,6 +32353,7 @@ const isPullRequestFromFork = () => {
|
|||
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
|
||||
if (isPullRequestFromFork()) {
|
||||
core.info('==> Fork detected, tokenless uploading used');
|
||||
process.env['TOKENLESS'] = context.payload.pull_request.head.label;
|
||||
return Promise.resolve('');
|
||||
}
|
||||
let token = core.getInput('token');
|
||||
|
|
|
|||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -48,6 +48,7 @@ const isPullRequestFromFork = (): boolean => {
|
|||
const getToken = async (): Promise<string> => {
|
||||
if (isPullRequestFromFork()) {
|
||||
core.info('==> Fork detected, tokenless uploading used');
|
||||
process.env['TOKENLESS'] = context.payload.pull_request.head.label;
|
||||
return Promise.resolve('');
|
||||
}
|
||||
let token = core.getInput('token');
|
||||
|
|
|
|||
Loading…
Reference in a new issue