pre-commit.com icon indicating copy to clipboard operation
pre-commit.com copied to clipboard

Add phylum-ci

Open maxrake opened this issue 3 years ago • 0 comments

The phylum-ci hook uses phylum to provide analysis of project dependencies from a lockfile during a commit containing that lockfile. The hook will fail and provide a report if any of the newly added/modified dependencies from the commit fail to meet the project risk thresholds for any of the five Phylum risk domains:

  • Malicious Code
  • Software Vulnerabilities
  • Authorship Risk & Reputation
  • License Misuse
  • Engineering Risk

See Phylum Risk Domains documentation for more detail.

The hook will be skipped if no dependencies were added or modified for a given commit. If one or more dependencies are still processing (no results available), then the hook will only fail if dependencies that have completed analysis results do not meet the specified project risk thresholds.

Relevant links for phylum-ci:

Links for Phylum:

NOTE: Adding this hook here was purposefully delayed until the Phylum Community Edition was released. This is a free version that allows for up to five (5) projects. Using this hook will allow developers to shift their security further left, ensuring bad open source software dependencies are not committed to their repository.

maxrake avatar Aug 23 '22 17:08 maxrake