Skip to content

Adjust alert location UntrustedCheckoutCritical#21800

Open
knewbury01 wants to merge 1 commit intogithub:mainfrom
knewbury01:knewbury01/adjust-actions-queries-untrusted-checkout-critical-alert
Open

Adjust alert location UntrustedCheckoutCritical#21800
knewbury01 wants to merge 1 commit intogithub:mainfrom
knewbury01:knewbury01/adjust-actions-queries-untrusted-checkout-critical-alert

Conversation

@knewbury01
Copy link
Copy Markdown
Contributor

this change will result in alerts closing and reopening
but has the benefit of allowing the query main location to align better with other queries of this type

Copilot AI review requested due to automatic review settings May 5, 2026 17:37
@knewbury01 knewbury01 requested a review from a team as a code owner May 5, 2026 17:37
@github-actions github-actions Bot added documentation Actions Analysis of GitHub Actions labels May 5, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the actions/untrusted-checkout/critical query so its main alert location points at the checkout step rather than the later poisonable step, bringing it closer to the related untrusted-checkout queries and documenting the resulting alert churn.

Changes:

  • Changed the critical untrusted-checkout query selection to use the checkout step as the alert’s main location.
  • Regenerated the expected test output to reflect the new alert locations.
  • Added a change note explaining the location shift and the expected close/reopen behavior for existing alerts.
Show a summary per file
File Description
actions/ql/src/Security/CWE-829/UntrustedCheckoutCritical.ql Adjusts the selected alert location in the critical query.
actions/ql/test/query-tests/Security/CWE-829/UntrustedCheckoutCritical.expected Updates golden test output for the new alert locations.
actions/ql/src/change-notes/2026-05-05-untrusted-checkout-high.md Adds a user-facing change note for the alert-location update.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

---
category: majorAnalysis
---
* 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. No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Actions Analysis of GitHub Actions documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants