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

Use embedded actions extractor only for old CLI versions #2788

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

dbartol
Copy link
Contributor

@dbartol dbartol commented Feb 27, 2025

When trying to remove the embedded actions extractor, we discovered that the extractor in the actual CLI download is missing the execute bit on its scripts. That's fixed in 2.20.6, so I've changed the Action to only use the embedded extractor for pre-2.20.6 versions.

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 bot review requested due to automatic review settings February 27, 2025 20:37
@dbartol dbartol requested a review from a team as a code owner February 27, 2025 20:37

Choose a reason for hiding this comment

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

PR Overview

This PR updates the logic to use the embedded actions extractor only for CLI versions prior to 2.20.6.

  • Updates conditional logic based on the CodeQL version
  • Includes detailed inline comments explaining the rationale for maintaining the embedded extractor for older versions

Reviewed Changes

File Description
src/codeql.ts Modified conditional check to use the embedded extractor only for pre-2.20.6 versions

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

@dbartol dbartol force-pushed the dbartol/use-real-actions-extractor branch from bd44fca to 85e30fe Compare February 27, 2025 20:42
@dbartol dbartol requested a review from angelapwen February 27, 2025 22:04
angelapwen
angelapwen previously approved these changes Feb 27, 2025
Copy link
Contributor

@angelapwen angelapwen left a comment

Choose a reason for hiding this comment

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

Makes sense to me 👍 do we want to add a changenote for this or are we skipping it because it's experimental?

@dbartol
Copy link
Contributor Author

dbartol commented Feb 27, 2025

do we want to add a changenote for this

For this change, there should be no user-visible impact, so I'm skipping the change note. When we do finally remove the embedded extractor entirely, I'll add a change note, although we don't expect any users to actually notice the breaking change.

@angelapwen
Copy link
Contributor

Sounds good to me!! 🚢

@dbartol dbartol merged commit 80f9930 into main Mar 3, 2025
270 checks passed
@dbartol dbartol deleted the dbartol/use-real-actions-extractor branch March 3, 2025 18:59
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