Skip to content

Commit ac7da18

Browse files
refactor: update warning messages for git commit history flag usage
1 parent 0580ad4 commit ac7da18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/commands/scan.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ const (
124124
"--scs-repo-url your_repo_url --scs-repo-token your_repo_token"
125125
ScsScorecardUnsupportedHostWarningMsg = "SCS scan warning: Unable to run Scorecard scanner due to unsupported repo host. Currently, Scorecard can only run on GitHub Cloud repos."
126126

127-
gitCommitHistoryInvalidValueErrorMsg = "Invalid value for --git-commit-history. Use 'true' or 'false'."
128-
gitCommitHistoryNotAvailableWarningMsg = "Secret Detection scan warning: Git commit history scanning is not available. The flag will be ignored."
129-
gitCommitHistoryNotSelectedWarningMsg = "Secret Detection scan warning: '--git-commit-history' was provided, but SCS is not selected. Ignoring this flag."
130-
gitCommitHistoryNotApplicableWarningMsg = "Secret Detection scan warning: Commit History applies only to Secret Detection. The flag will be ignored."
127+
gitCommitHistoryInvalidValueErrorMsg = "Invalid value for --git-commit-history. Valid values are: 'true' or 'false'"
128+
gitCommitHistoryNotAvailableWarningMsg = "Secret Detection scan warning: --git-commit-history flag ignored because git commit history scanning is not available."
129+
gitCommitHistoryNotSelectedWarningMsg = "Secret Detection scan warning: --git-commit-history flag ignored because scs was not specified in scan types."
130+
gitCommitHistoryNotApplicableWarningMsg = "Secret Detection scan warning: --git-commit-history flag ignored because secret detection wasn't run on this scan."
131131
gitCommitHistoryNoGitRepositoryWarningMsg = "Secret Detection scan warning: No Git history found. Secret Detection will scan the working tree only."
132132

133133
jsonExt = ".json"

0 commit comments

Comments
 (0)