mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-06-06 03:17:05 +00:00
Use path.resolve() to normalize paths before comparison in removeIncludeIfCredentials(). The previous startsWith() check was vulnerable to path traversal attacks where a path like "/tmp/runner/../../../etc/passwd" would pass the check but resolve outside RUNNER_TEMP. Also append path.sep to prevent false positives (e.g., /tmp/runner2 matching /tmp/runner). |
||
|---|---|---|
| .. | ||
| 790.index.js | ||
| index.js | ||