Skip to content

Prepare action for public rust support #2929

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

Merged
merged 2 commits into from
Jun 13, 2025
Merged

Prepare action for public rust support #2929

merged 2 commits into from
Jun 13, 2025

Conversation

redsun82
Copy link
Contributor

@redsun82 redsun82 commented Jun 12, 2025

This makes it so that once the codeql that is being used by the action supports Rust extraction out of the box we skip all the experimental handling code.

Functionally (considering the feature flag will also be switched at that moment), this will primarily result in skipping to print
Experimental rust analysis enabled in that case. Once the feature flag is switched, we can clean up this code (though not remove it entirely to ensure backward compatibility).

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

@Copilot Copilot AI review requested due to automatic review settings June 12, 2025 11:00
@redsun82 redsun82 requested a review from a team as a code owner June 12, 2025 11:00
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 updates the Rust support logic to only enable the experimental CodeQL feature flag when the installed CodeQL version lacks built-in Rust support.

  • Add a codeql.resolveLanguages() check before exporting CODEQL_ENABLE_EXPERIMENTAL_FEATURES for Rust
  • Mirror the updated logic and comment in both the TypeScript source and compiled JavaScript

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/init-action.ts Conditionally set experimental Rust feature flag based on detected CodeQL support
lib/init-action.js Apply the same conditional check and updated comment in the built JS

@redsun82 redsun82 merged commit be30325 into main Jun 13, 2025
273 checks passed
@redsun82 redsun82 deleted the redsun82/rust branch June 13, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants