-
Notifications
You must be signed in to change notification settings - Fork 1.7k
JS: Remove legacy actions queries #19849
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
base: main
Are you sure you want to change the base?
Conversation
Superseded by actions/untrusted-checkout/{medium,high,critical}
Superseded by actions/secrets-in-artifacts
Superseded by actions/command-injection/{medium,critical}
QHelp previews: |
There was a problem hiding this 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 removes three legacy JavaScript QL queries (and their associated tests and references) that have been superseded by newer queries in the Actions QLPack, and adds change-notes plus a deprecation comment.
- Remove tests and reference entries for
ActionsArtifactLeak.ql
- Remove tests and reference entries for
ExpressionInjection.ql
- Remove tests and reference entries for
UntrustedCheckout.ql
- Add deprecation note to
Actions.qll
and update integration test suites - Add a change-note documenting the removal
Reviewed Changes
Copilot reviewed 50 out of 50 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
javascript/ql/test/query-tests/Security/CWE-312/ActionsArtifactLeak.* | Removed legacy test reference and expected output for the deprecated artifact-leak query |
javascript/ql/test/query-tests/Security/CWE-094/ExpressionInjection/** | Removed composite and workflow tests for the deprecated command-injection query |
javascript/ql/test/experimental/Security/CWE-094/** | Removed experimental tests for the deprecated pull-request-target query |
javascript/ql/src/experimental/Security/CWE-094/UntrustedCheckout.* | Deleted deprecated pull-request-target query, examples, and docs |
javascript/ql/src/Security/CWE-312/ActionsArtifactLeak.* | Deleted deprecated actions-artifact-leak query and docs |
javascript/ql/src/Security/CWE-094/ExpressionInjection.* | Deleted deprecated command-injection query and docs |
javascript/ql/lib/semmle/javascript/Actions.qll | Added pending deprecation comment |
javascript/ql/src/change-notes/2025-06-23-remove-legacy-actions-queries.md | Added note documenting removal of legacy queries |
javascript/ql/integration-tests/query-suite/*.expected | Updated integration test suites to remove references to deprecated queries |
javascript/ql/src/change-notes/2025-06-23-remove-legacy-actions-queries.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the typo spotted by copilot LGTM.
…s-queries.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Removes three queries from the JS qlpack, which have been superseded by newer queries that are part of the Actions qlpack:
js/actions/pull-request-target
has been superseded byactions/untrusted-checkout/{medium,high,critical}
js/actions/actions-artifact-leak
has been supersded byactions/secrets-in-artifacts
js/actions/command-injection
has been superseded byactions/command-injection/{medium,critical}