summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorsourcecodereviewer <[email protected]>2026-03-20 15:10:17 +0530
committerRbb666 <[email protected]>2026-03-20 17:55:47 +0800
commitf78bef1207125c3845765bdc46d5529e39f019ff (patch)
tree36fe5792e2d0afde6c7ebcac0a1f7801e1443dc7 /components
parent5d1747ac5dc63781070a4536ba5ce96f23e2f5ef (diff)
fix(ci): prevent expression injection in pr_format_bot.yml
Move user-controlled GitHub Actions context expressions (github.event.pull_request.head.ref, head.repo.full_name, pull_request.number, event.action) from direct interpolation in run: blocks to env: variables. Direct interpolation of these values in shell scripts allows attackers to inject arbitrary commands via crafted branch names under pull_request_target, which runs in the base repo context. Using env: variables ensures values are treated as literal strings by the shell, preventing command injection. Ref: https://securitylab.github.com/research/github-actions-untrusted-input/ Reported-by: Wilson Cyber Research (@sourcecodereviewer) Security: expression-injection
Diffstat (limited to 'components')
0 files changed, 0 insertions, 0 deletions