Try to find 0 error bug and change auto update to PR #5
Merged
abhigyanghosh30 merged 11 commits intomainfrom Aug 21, 2025
Merged
Try to find 0 error bug and change auto update to PR #5abhigyanghosh30 merged 11 commits intomainfrom
abhigyanghosh30 merged 11 commits intomainfrom
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
terameta
reviewed
Aug 5, 2025
Contributor
Author
|
@terameta even though the workflow fails, the PR is made with the correct variables |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a bug where USN data extraction was yielding zero results due to incorrect field mapping, and changes the automation workflow from auto-commits to creating pull requests for manual review.
- Updates USN data parsing to extract from
upstreamfield instead ofrelatedfield and handle "UBUNTU-" prefixed identifiers - Adds debug logging to track the number of CVE entries and packages processed
- Replaces automatic commit workflow with pull request creation for better change visibility
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| main.py | Updates USN data field mapping and adds debug print statements |
| .github/workflows/schedule.yaml | Replaces auto-commit with PR creation workflow |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
Author
|
@terameta the latest workflow ran without errors. Can we merge this? |
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.
The fields on the USN files changed and this PR updates the code to fetch from the correct fields
It also removes the auto updates to create a PR with the changes
QA steps:
Run
python main.pylocallyThe files should have non zero value (ideally count should be higher than the previous counts)