Skip to main content

needs_security_scan

Function needs_security_scan 

Source
pub fn needs_security_scan(
    file_paths: &[String],
    labels: &[String],
    description: &str,
) -> bool
Expand description

Determines if a security scan should be performed based on context.

Checks file paths, PR labels, and description keywords to decide if security scanning is warranted.

§Arguments

  • file_paths - List of file paths changed in the PR
  • labels - PR labels
  • description - PR title and body text

§Returns

true if a security scan should be performed.