-
Notifications
You must be signed in to change notification settings - Fork 21
Collate scan results in add-on metadata #6411
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
Conversation
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 refactors the add-on security scanning system to store scan results directly in add-on metadata files instead of using a separate reviewedAddons.json file. The changes improve result persistence and consistency while introducing manual approval requirements for security failures.
- Store VirusTotal and CodeQL scan results directly in add-on metadata files
- Remove the reviewedAddons.json tracking system in favor of metadata-based storage
- Require manual approval through GitHub environments when security scans fail
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
reviewedAddons.json | Removes the centralized tracking file for reviewed add-ons |
.github/workflows/virusTotalAnalysis.js | Refactors to store scan results in metadata and normalize newlines |
.github/workflows/virusScanAllAddons.yml | Updates batch processing and commit messages for new result storage |
.github/workflows/securityAnalysis.js | Modifies to store CodeQL results in metadata instead of reviewedAddons.json |
.github/workflows/codeql-analysis.yml | Adds result committing and removes manual approval artifacts |
.github/workflows/checkAndSubmitAddonMetadata.yml | Replaces manual approval PR creation with environment-based approval |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
@@ -24,7 +24,7 @@ jobs: | |||
VT_API_KEY: ${{ secrets.VT_API_KEY }} | |||
VT_API_LIMIT: ${{ vars.VT_API_LIMIT }} | |||
BRANCH_NAME: addVTURLs${{ github.run_number }} | |||
BATCH_SIZE: 100 | |||
BATCH_SIZE: 10 |
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.
temporarily adjusted for testing, we can probably up this to 300 once testing is complete
Co-authored-by: Copilot <[email protected]> Signed-off-by: Sean Budd <[email protected]>
TODO:
|
Fix schema properties: vtScanUrl submissionTime reviewUrl Add scan results schema property for nvaccess/addon-datastore#6411
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.
Please also document the change in process
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.
Thanks, @seanbudd
Fixes #6341
Fixes #3808
Related: nvaccess/addon-datastore-validation#46
Issues:
Solutions:
Known issues
Testing