Skip to content

fix(security): prevent pwn-request vulnerability in gen_docs workflow - #4850

Merged
qinxuye merged 1 commit into
xorbitsai:mainfrom
qinxuye:chore/ci
Apr 25, 2026
Merged

fix(security): prevent pwn-request vulnerability in gen_docs workflow#4850
qinxuye merged 1 commit into
xorbitsai:mainfrom
qinxuye:chore/ci

Conversation

@qinxuye

@qinxuye qinxuye commented Apr 25, 2026

Copy link
Copy Markdown
Contributor
  • Only execute gen_docs.py from base branch, not from PR
  • Copy templates from base branch instead of using PR versions
  • Use pull_request_target with explicit base SHA checkout
  • Add paths filter to trigger only on model spec changes
  • Remove complex file change detection (handled by paths filter)
  • Support both same-repo and fork PRs safely

- Only execute gen_docs.py from base branch, not from PR
- Copy templates from base branch instead of using PR versions
- Use pull_request_target with explicit base SHA checkout
- Add paths filter to trigger only on model spec changes
- Remove complex file change detection (handled by paths filter)
- Support both same-repo and fork PRs safely
@XprobeBot XprobeBot added the bug Something isn't working label Apr 25, 2026
@XprobeBot XprobeBot added this to the v2.x milestone Apr 25, 2026
@qinxuye
qinxuye merged commit be40250 into xorbitsai:main Apr 25, 2026
4 of 14 checks passed
@qinxuye
qinxuye deleted the chore/ci branch April 25, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants