Documentation Index
Fetch the complete documentation index at: https://mintlify.com/better-auth/better-hub/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Better Hub provides a centralized view of security advisories and vulnerability alerts for your repositories. Track CVEs, Dependabot alerts, and CodeQL findings in one place.Key Features
Vulnerability Dashboard
See all security issues at a glance with severity indicators
Dependabot Integration
Automated dependency update PRs for security patches
CodeQL Scanning
Static analysis results for code security issues
GHSA Tracking
GitHub Security Advisory database integration
Security Dashboard
Access the security dashboard from any repository:- Navigate to the repository
- Click “Security” in the navigation tabs
- View summary of all advisories
Dashboard Layout
Advisory Details
Click any advisory to see full details:Overview Section
- GHSA ID: GitHub Security Advisory identifier
- CVE ID: Common Vulnerabilities and Exposures ID (if applicable)
- Severity: Critical, High, Moderate, or Low
- CVSS Score: Numeric severity score (0-10)
- Published: When the advisory was made public
- Updated: Last modification date
Description
Detailed explanation of the vulnerability:- What component is affected
- How the vulnerability can be exploited
- Potential impact
- Attack vectors
Affected Versions
Which versions of the package are vulnerable:Remediation
Steps to fix the vulnerability:- Automated fix: If Dependabot can auto-fix, a PR link appears
- Manual update: Upgrade instructions if auto-fix isn’t possible
- Workaround: Temporary mitigation if a patch isn’t available
Dependabot Alerts
Dependabot automatically detects outdated dependencies with known vulnerabilities:Alert List
In the Security tab:Auto-Fix PRs
When Dependabot can fix an alert:- Dependabot opens a PR automatically
- PR title: “Bump [package] from [old] to [new]”
- PR description includes:
- Security advisory details
- Release notes for the new version
- Compatibility score
- Review and merge the PR to resolve the alert
Dependabot PRs are labeled with
dependencies and security for easy filtering.Manual Remediation
If Dependabot can’t auto-fix:- Click “View advisory” on the alert
- Follow the manual update instructions:
- Commit the changes
- Alert auto-closes once the fix is merged
CodeQL Scanning
CodeQL performs static analysis to find security issues in your code:Scan Results
Alert Details
Click an alert to see:- File and line number: Where the issue was detected
- Code snippet: Highlighted vulnerable code
- Explanation: Why this is a security risk
- Recommendation: How to fix it
- Data flow: How untrusted input reaches the vulnerable sink
Resolving CodeQL Alerts
- Fix the code: Address the underlying issue
- Commit the fix: Push your changes
- Re-run CodeQL: Workflow runs automatically on push
- Alert closes: If the scan no longer detects the issue
- Dismiss: If it’s a false positive
- Reason: Select dismissal reason (won’t fix, false positive, used in tests)
- Comment: Explain why it’s dismissed
Severity Levels
Better Hub uses GitHub’s severity classification:| Severity | Color | CVSS Score | Description |
|---|---|---|---|
| Critical | 🔴 Red | 9.0 - 10.0 | Immediate action required |
| High | 🟠 Orange | 7.0 - 8.9 | Fix as soon as possible |
| Moderate | 🟡 Yellow | 4.0 - 6.9 | Schedule a fix |
| Low | 🔵 Blue | 0.1 - 3.9 | Minor risk, fix when convenient |
Severity is determined by the advisory’s CVSS (Common Vulnerability Scoring System) score, not by Better Hub.
Filtering Advisories
Narrow the list with filters:By Severity
By State
- Open: Unresolved vulnerabilities
- Dismissed: Marked as false positive or won’t fix
- Fixed: Patched or remediated
By Type
Security Overview Widget
On the repository overview, a security widget shows:Secret Scanning
If enabled, Better Hub shows leaked secrets:Secret Alerts
Revoking Secrets
- Revoke the secret: In GitHub settings, regenerate the token/key
- Remove from code: Delete the secret from the repository
- Update references: Use environment variables or secret management
- Mark as resolved: Alert closes once the secret is revoked
Secrets detected in git history remain detectable even after deletion. Use tools like
git-filter-repo to remove them from history.Repository Security Settings
Enable security features from the repository settings:Dependabot
- Navigate to repository “Settings”
- “Security & analysis” section
- Enable:
- Dependabot alerts: Vulnerability scanning
- Dependabot security updates: Auto-fix PRs
- Dependabot version updates: Keep all deps current
Code Scanning
- “Security & analysis” section
- Enable “Code scanning”
- Set up CodeQL workflow:
- Click “Set up” → “Default”
- Workflow is auto-created in
.github/workflows/codeql.yml - Scans run on push and PR
Secret Scanning
- “Security & analysis” section
- Enable “Secret scanning”
- Optionally enable “Push protection” to block commits with secrets
Email Notifications
Get notified of new vulnerabilities:- Repository “Settings” → “Notifications”
- Enable:
- Security alerts: New advisories
- Dependabot alerts: Dependency vulnerabilities
- Code scanning alerts: CodeQL findings
- Choose delivery:
- Web notifications
- Mobile push (GitHub app)
Best Practices
Vulnerability Lifecycle
- Detection: Dependabot/CodeQL finds an issue
- Alert created: Shows up in Better Hub security dashboard
- Triage: Review severity and impact
- Remediation: Apply patch or dismiss with reason
- Verification: Scan re-runs to confirm fix
- Closure: Alert marked as resolved
Related Features
- CI/CD Status - CodeQL scans run as GitHub Actions
- Pull Requests - Review Dependabot PRs
- Repository Overview - Security summary widget
- Command Center - Navigate to security page with ⌘K