Skip to content

Using to tokenless upload although a token is given #1457

@leofeyer

Description

@leofeyer

I just noticed that the action always switches to tokenless upload when the PR is in a forked repo.

The PR is happening in a forked repo. Using tokenless upload.

But the token is available in the forked repo, too, so the uploader could use it. It just does not seem to check this.

if (isPullRequestFromFork()) {
core.info('==> Fork detected, tokenless uploading used');
return Promise.resolve('');
}
let token = core.getInput('token');

Can you adjust this so that isPullRequestFromFork() is only called if there is no token?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions