Skip to content

Commit

Permalink
fix(sarif): fix the warning message (aquasecurity#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk authored and masahiro331 committed Feb 6, 2022
1 parent e8e6b43 commit bfc3656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/report/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func Write(report Report, option Option) error {
case "template":
// We keep `sarif.tpl` template working for backward compatibility for a while.
if strings.HasPrefix(option.OutputTemplate, "@") && filepath.Base(option.OutputTemplate) == "sarif.tpl" {
log.Logger.Warn("Using `--template sarif.tpl` is deprecated. Please migrate to `--report sarif`. See https://github.com/aquasecurity/trivy/discussions/1571")
log.Logger.Warn("Using `--template sarif.tpl` is deprecated. Please migrate to `--format sarif`. See https://github.com/aquasecurity/trivy/discussions/1571")
writer = SarifWriter{Output: option.Output, Version: option.AppVersion}
break
}
Expand Down

0 comments on commit bfc3656

Please sign in to comment.