mirror of
https://code.forgejo.org/actions/checkout.git
synced 2026-07-03 01:56:09 +00:00
build
This commit is contained in:
parent
c12eb249cb
commit
c2edb9a740
1 changed files with 1 additions and 2 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
|
@ -2822,8 +2822,7 @@ function assertSafePrCheckout(input) {
|
||||||
// (B) We cannot check for all fork PR refs so check to see
|
// (B) We cannot check for all fork PR refs so check to see
|
||||||
// if the resolved input points to the fork PR sha we have in the payload
|
// if the resolved input points to the fork PR sha we have in the payload
|
||||||
const repositoryMatchesPrHead = typeof prHeadRepoFullName === 'string' &&
|
const repositoryMatchesPrHead = typeof prHeadRepoFullName === 'string' &&
|
||||||
input.qualifiedRepository.toLowerCase() ===
|
input.qualifiedRepository.toLowerCase() === prHeadRepoFullName.toLowerCase();
|
||||||
prHeadRepoFullName.toLowerCase();
|
|
||||||
const refMatchesPullPattern = PR_REF_PATTERN.test(input.ref);
|
const refMatchesPullPattern = PR_REF_PATTERN.test(input.ref);
|
||||||
const commitMatchesPrHeadSha = !!input.commit && prShas.includes(input.commit.toLowerCase());
|
const commitMatchesPrHeadSha = !!input.commit && prShas.includes(input.commit.toLowerCase());
|
||||||
if (!repositoryMatchesPrHead &&
|
if (!repositoryMatchesPrHead &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue