backport allow-unsafe-pr-checkout to v2 (#2504)
Some checks failed
Build and Test / test-proxy (push) Failing after 31s
Build and Test / test-bypass-proxy (push) Failing after 55s
Build and Test / test-git-container (push) Failing after 40s
Build and Test / test (ubuntu-latest) (push) Failing after 1m26s
Build and Test / build (push) Failing after 3m32s
Build and Test / test (macos-latest) (push) Has been cancelled
Build and Test / test (windows-latest) (push) Has been cancelled

* block checking out fork pr for pull_request_target and workflow_run (#2454)

* block checking out fork pr for some events

* address copilot and reviewer feedback

* run prettier formatting

* build

* update urls

* update readme

* update description and url again

* edit url one more time

* update error wording (#2467)

* bump upload-artifact

* rebuild
This commit is contained in:
Aiqiao Yan
2026-07-07 16:34:16 -04:00
committed by GitHub
parent ee0669bd1c
commit 262cdb5f1c
11 changed files with 509 additions and 4 deletions

View File

@@ -86,6 +86,7 @@ describe('input-helper tests', () => {
expect(settings.repositoryOwner).toBe('some-owner')
expect(settings.repositoryPath).toBe(gitHubWorkspace)
expect(settings.setSafeDirectory).toBe(true)
expect(settings.allowUnsafePrCheckout).toBe(false)
})
it('qualifies ref', async () => {