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
linting full stop
  • Loading branch information
KyFaSt committed Feb 27, 2025
commit aad59c654d845ac63f21573089eed0caec90527d
Original file line number Diff line number Diff line change
@@ -52,4 +52,4 @@ where
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()
"Potential execution of untrusted code on a privileged workflow ($@).", event, event.getName()
Original file line number Diff line number Diff line change
@@ -26,5 +26,5 @@ where
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,
select checkout, "Potential execution of untrusted code on a privileged workflow ($@).", event,
event.getName()