The endorctl validate ignore command validates that an ignore file follows the yaml schema
and flags duplicates or invalid entries.
Usage
The syntax of the endorctl validate ignore command is:
endorctl validate ignore [flags]
Flags and variables
The endorctl validate ignore command uses the following flags and environment variables:
| Flag | Environment Variable | Type | Description |
|---|---|---|---|
path |
ENDOR_VALIDATE_IGNORE_PATH |
string | Path to the ignore file to validate (default: .endorignore.yaml). |
Example usage
Validate an ignore file:
endorctl validate ignore --path .customignore.yaml
Example output
ERROR invalid-args: Duplicate ignore entry for 'Unmaintained Dependency org.webjars.bowergithub.webcomponents:shadycss@1.9.1': endorlabs/app-java-demo-2
ERROR invalid-args: Duplicate ignore entry for 'Unmaintained Dependency org.webjars.bowergithub.webcomponents:shadycss@1.9.1': endorlabs/app-java-demo-3
An invalid argument was provided.
details: 2 errors detected