Skip to content

Commit ebdab87

Browse files
G-Rathcuixq
andauthored
chore: ignore use of our own deprecated field (#1991)
We have to use this field to maintain backwards compatibility Co-authored-by: Xueqin Cui <72771658+cuixq@users.noreply.github.com>
1 parent dae1530 commit ebdab87

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmd/osv-scanner/scan/source/command.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func action(_ context.Context, cmd *cli.Command, stdout, stderr io.Writer) error
125125
scannerAction := helper.GetCommonScannerActions(cmd, scanLicensesAllowlist)
126126

127127
scannerAction.LockfilePaths = cmd.StringSlice("lockfile")
128+
//nolint:staticcheck // ignore our own deprecated field
128129
scannerAction.SBOMPaths = cmd.StringSlice("sbom")
129130
scannerAction.Recursive = cmd.Bool("recursive")
130131
scannerAction.NoIgnore = cmd.Bool("no-ignore")

0 commit comments

Comments
 (0)