GeezerVison is showing github.com — Remove `augmentationProperties` from `Config` type by mbg · Pull Request #3075 · github/codeql-action
Conversation
mbg
commented
Sep 2, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This PR updates sendCompletedStatusReport to use the computed packs from computedConfig rather than computing the packs from the input UserConfig and AugmentationProperties locally.
As a result, AugmentationProperties is no longer needed in Config and is removed.
Risk assessment
For internal use only. Please select the risk level of this change:
- Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.
Merge / deployment checklist
- Confirm this change is backwards compatible with existing workflows.
- Consider adding a changelog entry for this change.
- Confirm the readme and docs have been updated if necessary.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this 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 the augmentationProperties field from the Config type by updating sendCompletedStatusReport to use computed packs from computedConfig instead of calculating them from UserConfig and AugmentationProperties. The change simplifies the configuration interface while maintaining the same functionality.
Key changes:
- Removed
augmentationProperties from the Config type definition
- Updated
getDefaultConfig return type to temporarily include augmentationProperties for internal use
- Simplified pack calculation logic in
sendCompletedStatusReport to use computedConfig.packs directly
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File |
Description |
| src/config-utils.ts |
Removes augmentationProperties from Config type and updates getDefaultConfig return type |
| src/init-action.ts |
Simplifies pack calculation logic to use config.computedConfig.packs directly |
| src/testing-utils.ts |
Removes augmentationProperties import and removes the field from test config creation |
| src/config-utils.test.ts |
Updates test to destructure augmentationProperties from getDefaultConfig result |
| src/codeql.test.ts |
Updates test to pass augmentationProperties directly to generateCodeScanningConfig |
| lib/init-action.js |
Generated JavaScript file (not reviewed per guidelines) |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before merging, could you run some of the PR checks that include packs in debug mode and check that the packs property is populated correctly?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
}
|
|
|
|
|
|
const config = await getDefaultConfig(inputs);
|
|
|
const { augmentationProperties, ...config } = await getDefaultConfig(inputs);
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that we only use getDefaultConfig in this function, consider having getDefaultConfig populate computedConfig directly to simplify the flow.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made the UserConfig (from the inputs) an argument to getDefaultConfig (now initActionState), set it there, and generate computedConfig there. That avoids having to return augmentationProperties as well.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@henrymercer I refactored creating the InitWithConfigStatusReport into a function and added some unit tests for that. That should be more robust than checking the debug logs, but let me know if you still want me to do that as well?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|