Merge pull request #8037 from backstage/rugvip/issuefix

scripts: tweak snyk issue script to catch existing license issues
This commit is contained in:
Fredrik Adelöw
2021-11-13 08:01:18 +01:00
committed by GitHub
+2 -1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env yarn ts-node --transpile-only
/*
* Copyright 2021 The Backstage Authors
*
@@ -33,7 +34,7 @@ const argv = minimist(process.argv.slice(2));
const GH_OWNER = 'backstage';
const GH_REPO = 'backstage';
const SNYK_GH_LABEL = 'snyk-vulnerability';
const SNYK_ID_REGEX = /\[([A-Z0-9-:]+)]/i;
const SNYK_ID_REGEX = /\[([^\]]+)]/i;
const isDryRun = 'dryrun' in argv;