Skip to content

Commit

Permalink
Merge pull request #174 from lacework/autofix
Browse files Browse the repository at this point in the history
skip autofix on 'old' target
  • Loading branch information
linpengzhang authored Mar 13, 2024
2 parents 3ad7130 + cd719ee commit 3ff65e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export function getActionRef(): string {
}

export function autofix() {
return getBooleanInput('autofix')
// autofix does fix all vulnerabilities, regardless of whether they are newly introduced or no
// for this reason, we skip if we are scanning the old branch
return getBooleanInput('autofix') && getInput('target') != 'old'
}

export function dynamic() {
Expand Down

0 comments on commit 3ff65e8

Please sign in to comment.