go-security-vulnerability
بواسطة irook661
Security & Passwordsموجز
Identify, assess, and fix security.
الوصف
ما الذي تفعله هذه المهارة
Scans Go modules for known security vulnerabilities using govulncheck, identifies affected dependencies, and guides remediation through updates, replacements, or removals. Covers both direct and transitive dependencies, with verification steps to confirm fixes without breaking builds.
govulncheck uses the Go vulnerability database and call graph analysis to report only vulnerabilities reachable in your code, reducing noise compared to generic dependency scanners.
متى تستخدمها
- Auditing a Go project before a production release
- Fixing a flagged CVE in a transitive dependency
- Checking whether a vulnerable function is actually called in your code
- Updating JWT libraries after a security advisory
- Setting up a routine vulnerability scan in a Go monorepo
مثال على سير العمل
User asks: scan my Go project for vulnerabilities and fix any found
- 1
Run govulncheck ./... to detect vulnerabilities in the module
- 2
Review CVE details and confirm which vulnerable functions are called
- 3
Update affected packages with go get -u and run go mod tidy
- 4
Re-run govulncheck ./... to confirm no vulnerabilities remain
- 5
Run go build ./... and go test ./... to verify nothing is broken
Clean govulncheck output with zero findings, successful build, and passing tests
التثبيت
clawhub install irook661/go-security-vulnerabilityشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.