Add resolve-cve skill for automated security vulnerability resolution #11650
Add resolve-cve skill for automated security vulnerability resolution #11650angle943 merged 5 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Justin Kim <jungkm@amazon.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit a23516c.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
@angle943 Have you consider use of https://www.npmjs.com/package/yarn-audit-fix ? The yarn don't have build in alternative for 'npm audit fix', but I think yarn-audit-fix tool is something to consider to be part of skill. Also I've seen many PRs created by dependabot, which in many cases delivery of them can address CVEs |
|
@tomkdgun i wasn't familiar with do you know how to configure it to have it run |
Signed-off-by: Justin Kim <jungkm@amazon.com>
PR Reviewer Guide 🔍(Review updated until commit 24ce05b)Here are some key observations to aid the review process:
|
|
Persistent review updated to latest commit 6fa150f |
PR Code Suggestions ✨Latest suggestions up to 24ce05b Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 24ce05b
Suggestions up to commit bc7973e
Suggestions up to commit 5a11efa
Suggestions up to commit 6fa150f
Suggestions up to commit 6fa150f
|
|
Persistent review updated to latest commit 5a11efa |
|
Persistent review updated to latest commit bc7973e |
|
@angle943 Should we add a check to only address the High and Critical CVEs. For the auto scanning of CVEs I feel there may be a lot of minor ones which can crowd the fix. |
|
@LDrago27 we currently only have like 5 minor ones, and ideally i want that number to be 0. if we are persistent w/ this, i think its fine to also resolve minor ones |
Signed-off-by: Justin Kim <jungkm@amazon.com>
|
Persistent review updated to latest commit 24ce05b |
1 similar comment
|
Persistent review updated to latest commit 24ce05b |
✅ All unit and integration tests passing
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11650 +/- ##
===========================================
- Coverage 61.58% 0 -61.59%
===========================================
Files 4995 0 -4995
Lines 137542 0 -137542
Branches 23901 0 -23901
===========================================
- Hits 84707 0 -84707
+ Misses 46692 0 -46692
+ Partials 6143 0 -6143
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Adds a comprehensive CVE resolution skill that automatically identifies and resolves security vulnerabilities in project dependencies.
Key Features:
.github/pull_request_template.mdfor future-proof PR descriptionstmp/directory to prevent conflictsWhat this skill does:
Files Added:
.claude/skills/resolve_cve.md- Main skill definition.claude/skills/resolve-cve-README.md- Comprehensive user documentation.claude/skills/README.md- Skills directory overview.kiro/prompts/resolve_cve.md- Kiro compatibility layerIssues Resolved
N/A - This is a new feature, not fixing existing issues
Screenshot
N/A - Command-line skill with no UI changes
Testing the changes
Skill Functionality Testing:
Documentation Testing:
# Verify all documentation files exist and are readable cat .claude/skills/resolve-cve-README.md cat .claude/skills/README.md cat .kiro/prompts/resolve_cve.mdGitIgnore Testing:
Changelog
Check List
yarn test:jestyarn test:jest_integration