Skip to content

Commit c934b20

Browse files
Merge pull request #17 from contentstack/chore/increaseThresholds
chore: increase high and critical vulns thresholds
2 parents 6e711c1 + b20d7ad commit c934b20

2 files changed

Lines changed: 4 additions & 22 deletions

File tree

.github/workflows/sca-scan.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ inputs:
44
MAX_CRITICAL_ISSUES:
55
description: 'Maximum allowed critical issues (with fixes)'
66
required: false
7-
default: '1'
7+
default: '10'
88
MAX_HIGH_ISSUES:
99
description: 'Maximum allowed high issues (with fixes)'
1010
required: false
11-
default: '1'
11+
default: '25'
1212
MAX_MEDIUM_ISSUES:
1313
description: 'Maximum allowed medium issues (with fixes)'
1414
required: false
@@ -90,8 +90,8 @@ runs:
9090
const mediumNoFix = process.env.medium_no_fix || '0';
9191
const lowCount = process.env.low_count || '0';
9292
const lowNoFix = process.env.low_no_fix || '0';
93-
const maxCritical = process.env.MAX_CRITICAL_ISSUES || '0';
94-
const maxHigh = process.env.MAX_HIGH_ISSUES || '0';
93+
const maxCritical = process.env.MAX_CRITICAL_ISSUES || '10';
94+
const maxHigh = process.env.MAX_HIGH_ISSUES || '25';
9595
const maxMedium = process.env.MAX_MEDIUM_ISSUES || '0';
9696
const maxLow = process.env.MAX_LOW_ISSUES || '0';
9797
const failBuild = process.env.fail_build || 'false';

0 commit comments

Comments
 (0)