Skip to content

Commit

Permalink
minor fix for ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush-ap committed Dec 5, 2024
1 parent 7e6a5df commit 1893619
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion security_config/secure_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Security struct {
Enabled bool `json:"enabled"`
Mode string `json:"mode"`
Validator_service_url string `json:"validator_service_url"`
IastTestIdentifier string `json:"iast_test_identifier"`
IastTestIdentifier string `json:"iast_test_identifier" yaml:"iast_test_identifier"`
Agent struct {
Enabled bool `json:"enabled"`
} `json:"agent"`
Expand Down
2 changes: 2 additions & 0 deletions security_handlers/web_socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ func getConnectionHeader() http.Header {

if env := secConfig.GlobalInfo.GetIastTestIdentifier(); env != "" {
connectionHeader.Add("NR-CSEC-IAST-TEST-IDENTIFIER", env)
connectionHeader.Add("NR-CSEC-IAST-SCAN-INSTANCE-COUNT", secUtils.IntToString(1))
} else {
connectionHeader.Add("NR-CSEC-IAST-SCAN-INSTANCE-COUNT", secUtils.IntToString(secConfig.GlobalInfo.ScanInstanceCount()))
}

Expand Down

0 comments on commit 1893619

Please sign in to comment.