chore: added github action custom detector name (#3417)

* [detector] feat: added rootly detector

* chore: fixed to show name in detector action on github

* Revert "[detector] feat: added rootly detector"

This reverts commit 1fcff0a807.

---------

Co-authored-by: Kashif Khan <[email protected]>
This commit is contained in:
Sahil Silare
2025-04-30 19:05:08 +05:00
committed by GitHub
co-authored by Kashif Khan
parent 28d172fa91
commit 3547a6efe1
+7 -2
View File
@@ -60,9 +60,14 @@ func (p *GitHubActionsPrinter) Print(_ context.Context, r *detectors.ResultWithM
}
dedupeCache[key] = struct{}{}
message := fmt.Sprintf("Found %s %s result 🐷🔑\n", verifiedStatus, out.DetectorType)
name := ""
if nameValue, ok := r.Result.ExtraData["name"]; ok {
name = fmt.Sprintf(" (%s)", nameValue)
}
message := fmt.Sprintf("Found %s %s%s result 🐷🔑\n", verifiedStatus, out.DetectorType, name)
if r.DecoderType != detectorspb.DecoderType_PLAIN {
message = fmt.Sprintf("Found %s %s result with %s encoding 🐷🔑\n", verifiedStatus, out.DetectorType, out.DecoderType)
message = fmt.Sprintf("Found %s %s%s result with %s encoding 🐷🔑\n", verifiedStatus, out.DetectorType, name, out.DecoderType)
}
fmt.Printf("::warning file=%s,line=%d,endLine=%d::%s",