Skip to content

Commit 3f44a23

Browse files
committed
Adjust alert location UntrustedCheckoutCritical
1 parent 4c1461a commit 3f44a23

3 files changed

Lines changed: 44 additions & 40 deletions

File tree

actions/ql/src/Security/CWE-829/UntrustedCheckoutCritical.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ where
5151
event.getName() = checkoutTriggers() and
5252
not exists(ControlCheck check | check.protects(checkout, event, "untrusted-checkout")) and
5353
not exists(ControlCheck check | check.protects(poisonable, event, "untrusted-checkout"))
54-
select poisonable, checkout, poisonable,
54+
select checkout, checkout, poisonable,
5555
"Potential execution of untrusted code on a privileged workflow ($@)", event, event.getName()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: majorAnalysis
3+
---
4+
* Adjusted `actions/untrusted-checkout/critical` to align more with other untrusted resource queries, where the alert location is the location where the artifact is obtained from (the checkout point). This aligns with the other 2 related queries. This will cause the same alerts to re-open for closed alerts of this query.

0 commit comments

Comments
 (0)