How to use the snyk-policy.save function in snyk-policy

To help you get started, we’ve selected a few snyk-policy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github snyk / snyk / src / cli / commands / ignore.ts View on Github external
.then(function ignoreIssue(pol) {
          pol.ignore[options.id] = [
            {
              '*': {
                reason: options.reason,
                expires: options.expiry,
              },
            },
          ];
          policy.save(pol, options['policy-path']);
        });
    });

snyk-policy

Snyk's policy parser and matching logic

Apache-2.0
Latest version published 10 months ago

Package Health Score

66 / 100
Full package analysis