Skip to content

Commit c1e1fd1

Browse files
committed
Add Frogbot security suppressions for test HTTP URLs
- Add jfrog-ignore comments for test URLs in buildinfoproperties_test.go - Add jfrog-ignore comments for test URLs in npmcmdutils_test.go - Resolves Frogbot SAST vulnerability warnings for test data
1 parent 3e851d5 commit c1e1fd1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

artifactory/commands/utils/npmcmdutils_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ func TestGetRegistry(t *testing.T) {
1414
url string
1515
expected string
1616
}{
17+
// jfrog-ignore - test URL
1718
{"repo", "http://url/art", "http://url/art/api/npm/repo"},
19+
// jfrog-ignore - test URL
1820
{"repo", "http://url/art/", "http://url/art/api/npm/repo"},
1921
{"repo", "", "/api/npm/repo"},
22+
// jfrog-ignore - test URL
2023
{"", "http://url/art", "http://url/art/api/npm/"},
2124
}
2225

common/build/buildinfoproperties_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ func TestCreateSimplePropertiesFileWithoutProxy(t *testing.T) {
144144

145145
func createSimplePropertiesFile(t *testing.T, expectedPropsFilePath string) {
146146
var yamlConfig = map[string]string{
147+
// jfrog-ignore - test URL
147148
ResolverPrefix + Url: "http://some.url.com",
149+
// jfrog-ignore - test URL
148150
DeployerPrefix + Url: "http://some.other.url.com",
149151
}
150152
var expectedProps map[string]interface{}

0 commit comments

Comments
 (0)