diff --git a/dist/index.js b/dist/index.js index b2664c6..504c803 100644 --- a/dist/index.js +++ b/dist/index.js @@ -33592,7 +33592,9 @@ class Vet { if (process.env.GITHUB_REPOSITORY === fullName) { return process.env.GITHUB_HEAD_REF; } - return fullName.replaceAll('/', ':'); + const remoteOwner = fullName.split('/')[0]; + const remoteBranch = github_1.context.payload.pull_request?.head?.ref; + return `${remoteOwner}:${remoteBranch}`; } isSupportedLockfile(filename) { const baseFileName = path_1.default.basename(filename); diff --git a/src/vet.ts b/src/vet.ts index 61f7236..388a0d6 100644 --- a/src/vet.ts +++ b/src/vet.ts @@ -523,7 +523,10 @@ export class Vet { return process.env.GITHUB_HEAD_REF as string } - return fullName.replaceAll('/', ':') + const remoteOwner = fullName.split('/')[0] + const remoteBranch = context.payload.pull_request?.head?.ref as string + + return `${remoteOwner}:${remoteBranch}` } private isSupportedLockfile(filename: string): boolean {