Skip to content

Commit 81c0a51

Browse files
feat: add support for tokenless v3 (#1410)
1 parent f5e203f commit 81c0a51

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32353,6 +32353,7 @@ const isPullRequestFromFork = () => {
3235332353
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
3235432354
if (isPullRequestFromFork()) {
3235532355
core.info('==> Fork detected, tokenless uploading used');
32356+
process.env['TOKENLESS'] = context.payload.pull_request.head.label;
3235632357
return Promise.resolve('');
3235732358
}
3235832359
let token = core.getInput('token');

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/buildExec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const isPullRequestFromFork = (): boolean => {
4848
const getToken = async (): Promise<string> => {
4949
if (isPullRequestFromFork()) {
5050
core.info('==> Fork detected, tokenless uploading used');
51+
process.env['TOKENLESS'] = context.payload.pull_request.head.label;
5152
return Promise.resolve('');
5253
}
5354
let token = core.getInput('token');

0 commit comments

Comments
 (0)