Skip to content

Commit

Permalink
修改filepath-search工具输出报告的漏洞名固定为filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlkl committed Mar 28, 2023
1 parent 4092a54 commit a7a5611
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions filepath-search/pkg/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ func scan(filepath string, regex string) ([]object.SecurityResult, error) {

if err := walk(l, func(filePath string, info os.FileInfo, reader io.Reader) error {
if reg.MatchString(filePath) {
vulId := "fp-" + filePath
securityResults = append(securityResults, object.SecurityResult{
VulId: vulId,
CveId: vulId,
VulName: vulId,
VulId: "filepath",
CveId: "filepath",
VulName: "filepath",
Path: filePath,
PkgName: filePath,
PkgVersions: []string{},
Expand Down

0 comments on commit a7a5611

Please sign in to comment.