feat: Add logging for extractor archive size and improve CodeQL installation error handling#21
Merged
Merged
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. OpenSSF Scorecard
Scanned Files
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR improves the robustness of CodeQL installation by adding a fallback mechanism and enhances diagnostics with extractor archive size logging. The changes add error handling resilience to the CodeQL setup process and provide better visibility into download operations.
- Added fallback CodeQL installation using GitHub CLI when standard installation fails
- Enhanced logging with extractor archive size information for better diagnostics
- Updated Docker image to include CodeQL extension for GitHub CLI support
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/main.rs | Implements fallback CodeQL installation using GitHub CLI when standard installation fails |
| src/extractors.rs | Adds logging of extractor archive size in MB and bytes with warning for unavailable size info |
| Dockerfile | Installs CodeQL extension for GitHub CLI to support fallback installation method |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces improvements to the installation workflow for CodeQL and adds logging for extractor archive sizes. The most significant change is the addition of a fallback installation method using the GitHub CLI if the standard CodeQL installation fails. Additionally, the Docker image is updated to include the CodeQL extension for the GitHub CLI.
CodeQL Installation Workflow:
gh codeql set-version) if the standard installation fails, improving robustness and reliability of the setup process.Logging and Diagnostics: