Manage false positives and acceptable risks with time-bound exceptions
Any security scanning tool may produce false positives, issues that are acceptable for a period of time, or issues that need to be temporarily ignored. vet
supports adding packages to an exceptions list, excluding them from scan results and reports.
Package exceptions must be handled with care. Any package added to the exceptions list will not be scanned and reported, including any future issues that may arise. To mitigate this risk, all exceptions must have an expiration date and cannot be permanent.
Suppress known false positive vulnerability reports
Temporarily accept specific risks during remediation planning
Provide time-bound exceptions for legacy systems being migrated
Exclude test-only dependencies from production security policies
Create an exceptions.yml
file with the following structure:
expires
field is mandatory and must be in RFC3339 formatid
field must be unique and can be any unique string formatreason
field is recommended for documentationGenerate exceptions automatically based on filter criteria:
Scan and Dump Data
Run a scan and dump raw data to a temporary directory:
Generate Conditional Exceptions
Create exceptions for packages without critical or high severity issues:
Review and Refine
Review the generated exceptions file and remove unnecessary entries
Adding all packages to exceptions is not recommended. Only do this for specific use cases like baseline establishment.
--exceptions-till
is parsed as YYYY-mm-dd
and generates a timestamp of 00:00:00
UTC for the specified date in RFC3339 format.
vet-action supports custom exceptions configuration:
Create Exceptions File
Create .github/vet/exceptions.yml
in your repository with your exceptions configuration
Update Workflow
Update your GitHub Actions workflow to include the exceptions file:
Pass an exceptions file as a global flag to vet
:
Package Matching
*
to match any versionScope and Application
Expiration Handling
Create different exception files for different environments:
Generate exceptions based on specific criteria:
Exception Hygiene
Documentation
Governance
The following patterns will NOT be implemented to prevent security risks:
*
wildcards without specific justificationComplete configuration guide for GitHub Actions integration
Learn how to create effective filter expressions for exceptions
Use query workflows for exception management
Implement comprehensive security policies with exceptions
Manage false positives and acceptable risks with time-bound exceptions
Any security scanning tool may produce false positives, issues that are acceptable for a period of time, or issues that need to be temporarily ignored. vet
supports adding packages to an exceptions list, excluding them from scan results and reports.
Package exceptions must be handled with care. Any package added to the exceptions list will not be scanned and reported, including any future issues that may arise. To mitigate this risk, all exceptions must have an expiration date and cannot be permanent.
Suppress known false positive vulnerability reports
Temporarily accept specific risks during remediation planning
Provide time-bound exceptions for legacy systems being migrated
Exclude test-only dependencies from production security policies
Create an exceptions.yml
file with the following structure:
expires
field is mandatory and must be in RFC3339 formatid
field must be unique and can be any unique string formatreason
field is recommended for documentationGenerate exceptions automatically based on filter criteria:
Scan and Dump Data
Run a scan and dump raw data to a temporary directory:
Generate Conditional Exceptions
Create exceptions for packages without critical or high severity issues:
Review and Refine
Review the generated exceptions file and remove unnecessary entries
Adding all packages to exceptions is not recommended. Only do this for specific use cases like baseline establishment.
--exceptions-till
is parsed as YYYY-mm-dd
and generates a timestamp of 00:00:00
UTC for the specified date in RFC3339 format.
vet-action supports custom exceptions configuration:
Create Exceptions File
Create .github/vet/exceptions.yml
in your repository with your exceptions configuration
Update Workflow
Update your GitHub Actions workflow to include the exceptions file:
Pass an exceptions file as a global flag to vet
:
Package Matching
*
to match any versionScope and Application
Expiration Handling
Create different exception files for different environments:
Generate exceptions based on specific criteria:
Exception Hygiene
Documentation
Governance
The following patterns will NOT be implemented to prevent security risks:
*
wildcards without specific justificationComplete configuration guide for GitHub Actions integration
Learn how to create effective filter expressions for exceptions
Use query workflows for exception management
Implement comprehensive security policies with exceptions