Skip to main content

Ignore Issue By File Path

Modify the .snyk policy file to ignore a stated issue according to its according to paths in the filesystem.

Basic Parameters

ParameterDescription
ExpiryTime until the ignore configuration expires. Default is none.
File PathFilesystem for which to ignore the issue. Used by snyk code and snyk test --unmanaged.
ReasonHuman-readable reason to ignore this issue.

Advanced Parameters

ParameterDescription
PathPath to resource inside the depgraph for which to ignore the issue.Use to narrow the scope of the ignore rule. When no resource path is specified, all resources are ignored.You can specify component versions in the path using https://github.com/npm/node-semver#versions.If used, follows the --policy-path option.
Policy PathPath to a .snyk policy file to pass manually.

Workflow Library Example

Ignore Issue by File Path with Snyk and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop