mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
feat: add support for tokenless v3 (#1410)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user