Skip to content

Commit

Permalink
Update Confidence Description (AST-37132) (#676)
Browse files Browse the repository at this point in the history
* Update Confidence Description (AST-37132)

* Update Confidence Description (AST-37132)

* fix tests

(cherry picked from commit 6ae1c6c)
  • Loading branch information
OrShamirCM committed Mar 11, 2024
1 parent c71a25c commit bb1c504
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ require (
golang.org/x/sys v0.18.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

)
2 changes: 1 addition & 1 deletion internal/commands/sast-prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
)

const (
confidenceDescription = " A score between 0 (low) and 100 (high) indicating OpenAI's confidence level for the effectiveness of the suggested remediation. <br>"
confidenceDescription = " A score between 0 (low) and 100 (high) indicating the degree of confidence in the exploitability of this vulnerability in the context of your code. <br>"
explanationDescription = " An OpenAI generated description of the vulnerability. <br>"
fixDescription = " A customized snippet, generated by OpenAI, that can be used to remediate the vulnerability in your code. <br>"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/sast-prompt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

const expectedOutputFormat = "<span style=\"color: regular;\">**CONFIDENCE:**</span><span style=\"color: grey; font-style: italic;\"> " +
"A score between 0 (low) and 100 (high) indicating OpenAI's confidence level for the effectiveness of the suggested remediation. " +
"A score between 0 (low) and 100 (high) indicating the degree of confidence in the exploitability of this vulnerability in the context of your code. " +
"<br></span>%s<span style=\"color: regular;\">**EXPLANATION:**</span><span style=\"color: grey; font-style: italic;\"> " +
"An OpenAI generated description of the vulnerability. <br></span>%s<span style=\"color: " +
"regular;\">**PROPOSED REMEDIATION:**</span><span style=\"color: grey; font-style: italic;\"> " +
Expand Down

0 comments on commit bb1c504

Please sign in to comment.