Skip to content

Commit 481d7f3

Browse files
authored
fix: exceptions file input is not handled in push events (#133)
1 parent eed4721 commit 481d7f3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

dist/index.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vet.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ export class Vet {
150150

151151
this.applyScanExclusions(vetFinalScanArgs)
152152

153+
// Check if exceptionsFile is provided
154+
if (this.config.exceptionFile) {
155+
core.info(`Using exceptions file: ${this.config.exceptionFile}`)
156+
vetFinalScanArgs.push('--exceptions', this.config.exceptionFile)
157+
}
158+
153159
await this.runVet(vetFinalScanArgs)
154160

155161
if (!fs.existsSync(vetSarifReportPath)) {

0 commit comments

Comments
 (0)