Skip to content

Commit

Permalink
fix: main mod pseudo version default off (#1894)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Luhring <[email protected]>
  • Loading branch information
luhring committed May 30, 2024
1 parent 4686568 commit 316c0e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,8 @@ match:
using-cpes: false
# even if CPE matching is disabled, make an exception when scanning for "stdlib".
always-use-cpe-for-stdlib: true
allow-main-module-pseudo-version-comparison: true
# allow main module pseudo versions, which may have only been "guessed at" by Syft, to be used in vulnerability matching
allow-main-module-pseudo-version-comparison: false
stock:
using-cpes: true
```
Expand Down
2 changes: 1 addition & 1 deletion cmd/grype/cli/options/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func defaultGolangConfig() golangConfig {
UseCPEs: false,
},
AlwaysUseCPEForStdlib: true,
AllowMainModulePseudoVersionComparison: true,
AllowMainModulePseudoVersionComparison: false,
}
}

Expand Down

0 comments on commit 316c0e9

Please sign in to comment.