Skip to content
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

Workflow for vulnerable dependency scan #5

Open
abelk2 opened this issue Oct 23, 2022 · 0 comments
Open

Workflow for vulnerable dependency scan #5

abelk2 opened this issue Oct 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@abelk2
Copy link
Collaborator

abelk2 commented Oct 23, 2022

Is your feature request related to a problem? Please describe.
It is important to scan our dependencies for known vulnerabilities, because our consumers might inherit them.

Describe the solution you'd like

  • Collect vulnerabilities from Gradle and NPM dependencies, including transitive ones.
  • Report vulnerable dependencies in the summary of the workflow job. It should contain the full identifier of the dependency, and the vulnerability (CVE) with its link.
  • Workflow should count the total number of scanned dependencies and the vulnerable ones.
  • Generate a dynamic badge (similarly to the coverage badge) and add it to the README. Label should be 'vulnerabilities', value should be <vulnerabilityCount> / <totalCount>. When vulnerability count is zero, it should be green, red otherwise.
  • Find a way to notify project maintainers when vulnerabilities were found (probably email).
  • Check should be scheduled to run weekly.

Describe alternatives you've considered
Dependabot would be a solution if it had support for Gradle version catalogs, which it doesn't.

Additional context
There's already a task called dependencyCheck in the Gradle build file that can be used for this.

@abelk2 abelk2 added the enhancement New feature or request label Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant