Skip to content

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Jun 23, 2025

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 by actions/untrusted-checkout/{medium,high,critical}
  • js/actions/actions-artifact-leak has been supersded by actions/secrets-in-artifacts
  • js/actions/command-injection has been superseded by actions/command-injection/{medium,critical}

asgerf added 5 commits June 23, 2025 14:36
Superseded by actions/untrusted-checkout/{medium,high,critical}
Superseded by actions/secrets-in-artifacts
Superseded by actions/command-injection/{medium,critical}
Copy link
Contributor

QHelp previews:

@asgerf asgerf marked this pull request as ready for review June 24, 2025 07:23
@Copilot Copilot AI review requested due to automatic review settings June 24, 2025 07:23
@asgerf asgerf requested a review from a team as a code owner June 24, 2025 07:23
Copy link
Contributor

@Copilot 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 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

Copy link
Contributor

@Napalys Napalys left a 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants