Skip to content

Commit b21ca59

Browse files
authored
fix(CxOne) fix project update for cx1 3.46 (#5525)
1 parent 60a6409 commit b21ca59

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pkg/checkmarxone/checkmarxone.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ func (sys *SystemInstance) UpdateProject(project *Project) error {
667667
delete(filteredMap, "applicationIds")
668668
delete(filteredMap, "createdAt")
669669
delete(filteredMap, "updatedAt")
670+
delete(filteredMap, "groups") // groups is causing "failed to check groups access" in 3.46
670671
jsonBody, err = json.Marshal(filteredMap)
671672

672673
if err != nil {

pkg/checkmarxone/checkmarxone_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ func TestUpdateProject(t *testing.T) {
306306
"\"key1\"": "\"value1\"",
307307
"\"keywithoutvalue\"": "\"\""
308308
},
309-
"groups": [],
310309
"criticality": 3,
311310
"mainBranch": "",
312311
"privatePackage": false

0 commit comments

Comments
 (0)