feat: add support for tokenless v3 (#1410)

This commit is contained in:
joseph-sentry 2024-06-11 11:06:49 -04:00 committed by GitHub
parent f5e203f3d9
commit 81c0a51dcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View file

@ -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');