Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions: Sequester issue_comment triggered untrusted checkout from other triggers #18838

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix id typos
  • Loading branch information
KyFaSt committed Feb 21, 2025
commit e343646ad74b541083ac1ad1a13f29126462ff8a
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
* @problem.severity warning
* @precision high
* @security-severity 7.5
* @id actions/untrusted-checkout-triggered-by-issue-comment/critical
* @id actions/untrusted-checkout-issue-comment/critical
* @tags actions
* security
* external/cwe/cwe-829
@@ -52,4 +52,4 @@
not exists(ControlCheck check | check.protects(checkout, event, "untrusted-checkout")) and
not exists(ControlCheck check | check.protects(poisonable, event, "untrusted-checkout"))
select poisonable, checkout, poisonable,
"Potential execution of untrusted code on a privileged workflow ($@)", event, event.getName()
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
* @problem.severity warning
* @precision high
* @security-severity 7.5
* @id actions/untrusted-checkout/high
* @id actions/untrusted-checkout-issue-comment/high
* @tags actions
* security
* external/cwe/cwe-829
@@ -26,5 +26,5 @@
inPrivilegedContext(checkout, event) and
event.getName() = issueCommentTriggers() and
not exists(ControlCheck check | check.protects(checkout, event, "untrusted-checkout"))
select checkout, "Potential execution of untrusted code on a privileged workflow ($@)", event,
event.getName()
Loading
Oops, something went wrong.