Enable unsafe PR checkout in workflow #408
Triggered via pull request
July 24, 2026 10:30
jiaoshuntian
opened
#290
Status
Failure
Total duration
6s
Artifacts
–
pr-preview.yml
on: pull_request_target
build-and-deploy
3s
Annotations
1 error and 1 warning
|
build-and-deploy
Refusing to check out fork pull request code from a 'pull_request_target' workflow. This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner access. Fetching and executing a fork's code in that trusted context commonly leads to "pwn request" vulnerabilities. To opt in, review the risks at https://gh.io/securely-using-pull_request_target and set 'allow-unsafe-pr-checkout: true' on the actions/checkout step.
|
|
build-and-deploy
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|