Skip to content

Commit

Permalink
Improve message (#100)
Browse files Browse the repository at this point in the history
* Add commit SHA to SARIF messages

Signed-off-by: Taiki Ono <taiki@finatext.com>

* Bump

Signed-off-by: Taiki Ono <taiki@finatext.com>

---------

Signed-off-by: Taiki Ono <taiki@finatext.com>
  • Loading branch information
taiki45 authored Jul 26, 2024
1 parent 54aa252 commit 5bb22f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gls"
description = "Support gitleaks config development and extend some gitleaks features."
version = "0.1.17"
version = "0.1.18"
edition = "2021"
rust-version = "1.70.0"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/sarif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ fn to_result(finding: Finding, guide: &str) -> SarifResult {
SarifResult {
message: Message {
text: format!(
"`{}` rule finds possible secret: {}{guide}",
finding.rule_id, finding.secret
"`{}` rule finds possible secret in {}: `{}`{guide}",
finding.rule_id, finding.commit, finding.secret
),
},
rule_id: finding.rule_id,
Expand Down

0 comments on commit 5bb22f0

Please sign in to comment.