NONRTRIC SME Fix sonar build issues 33/13433/2
authoraravind.est <aravindhan.a@est.tech>
Tue, 24 Sep 2024 13:28:41 +0000 (14:28 +0100)
committeraravind.est <aravindhan.a@est.tech>
Tue, 24 Sep 2024 13:42:35 +0000 (14:42 +0100)
this fixes the sonar prescan script failure in jenkins and github

Issue-ID: NONRTRIC-1033
Change-Id: I1f0995077746af1e986924f60126085aa11001f8
Signed-off-by: aravind.est <aravindhan.a@est.tech>
capifcore/build-capifcore-ubuntu.sh
servicemanager/build-servicemanager-ubuntu.sh

index 9bac724..934341f 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/bash
 ##############################################################################
 #
-#   Copyright (C) 2022: Nordix Foundation
+#   Copyright (C) 2022-2023: Nordix Foundation
+#   Copyright (C) 2023-2024: OpenInfra Foundation Europe
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.
@@ -28,7 +29,7 @@ go version
 cd capifcore/
 
 # install the go coverage tool helper
-go install github.com/ory/go-acc
+go install github.com/ory/go-acc@v0.2.8
 
 go get github.com/stretchr/testify/mock@v1.7.1
 
index 963e3aa..f4a00d8 100755 (executable)
@@ -27,7 +27,7 @@ export GO111MODULE=on
 go version
 
 # Get the go coverage tool helper
-go install github.com/ory/go-acc
+go install github.com/ory/go-acc@v0.2.8
 go get github.com/stretchr/testify/mock@v1.7.1
 go-acc ./... --ignore mockkong,common,discoverserviceapi,invokermanagementapi,publishserviceapi,providermanagementapi