| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR changes the init action to use the CodeQL version from cached overlay-base databases when performing overlay analysis. The change detects the CodeQL version from the most recent compatible cache entry and defaults to that version instead of the default CLI version.
Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file| File | Description |
|---|---|
| src/overlay-database-utils.ts | Adds getCodeQLVersionFromOverlayBaseDatabase function and refactors cache key utilities |
| src/overlay-database-utils.test.ts | Adds comprehensive tests for new cache key functionality and version extraction |
| src/init-action.ts | Integrates overlay database CodeQL version detection into initialization workflow |
| src/api-client.ts | Adds getMostRecentActionsCacheEntry function to retrieve latest cache entries |
| lib/*.js | Generated JavaScript files from TypeScript compilation |
Sorry, something went wrong.
| } | ||
|
|
||
| const keyParts = cacheItem.key.split("-"); | ||
| if (keyParts.length < 9) { |
There was a problem hiding this comment.
The magic number 9 for minimum key parts should be defined as a named constant to improve code maintainability and make the cache key format expectations clearer.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR changes the init action so that, in situations where it would perform overlay analysis from cache, default the CodeQL CLI version to match that from the cached overlay-base database.
Risk assessment
For internal use only. Please select the risk level of this change:
Merge / deployment checklist