test fork change

Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
This commit is contained in:
joseph-sentry 2024-06-21 12:24:53 -04:00
parent ca3e2d9612
commit ab25b1efb3
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

6
dist/index.js vendored
View file

@ -32351,12 +32351,12 @@ const isPullRequestFromFork = () => {
return (baseLabel.split(':')[0] !== headLabel.split(':')[0]);
};
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
if (isPullRequestFromFork()) {
let token = core.getInput('token');
if (!token && 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');
let url = core.getInput('url');
const useOIDC = isTrue(core.getInput('use_oidc'));
if (useOIDC) {
@ -32831,7 +32831,7 @@ const run = () => src_awaiter(void 0, void 0, void 0, function* () {
const unlink = () => {
external_node_fs_namespaceObject.unlink(filename, (err) => {
if (err) {
setFailure(`Codecov: Could not unlink uploader: ${err.message}`, failCi);
setFailure(`Codecov: Could not unlink: ${err.message}`, failCi);
}
});
};

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -66,7 +66,7 @@ const run = async (): Promise<void> => {
fs.unlink(filename, (err) => {
if (err) {
setFailure(
`Codecov: Could not unlink uploader: ${err.message}`,
`Codecov: Could not unlink: ${err.message}`,
failCi,
);
}