@@ -128,8 +128,8 @@ func TestGithubWorkflowPinning(t *testing.T) {
128128
129129 s , e := testIsGitHubActionsWorkflowPinned (p , content , & dl )
130130 actual := checker.CheckResult {
131- Score : s ,
132- Error2 : e ,
131+ Score : s ,
132+ Error : e ,
133133 }
134134 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
135135 t .Fail ()
@@ -221,8 +221,8 @@ func TestNonGithubWorkflowPinning(t *testing.T) {
221221
222222 s , e := testIsGitHubActionsWorkflowPinned (p , content , & dl )
223223 actual := checker.CheckResult {
224- Score : s ,
225- Error2 : e ,
224+ Score : s ,
225+ Error : e ,
226226 }
227227 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
228228 t .Fail ()
@@ -268,8 +268,8 @@ func TestGithubWorkflowPkgManagerPinning(t *testing.T) {
268268
269269 s , e := testValidateGitHubWorkflowScriptFreeOfInsecureDownloads (p , content , & dl )
270270 actual := checker.CheckResult {
271- Score : s ,
272- Error2 : e ,
271+ Score : s ,
272+ Error : e ,
273273 }
274274
275275 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
@@ -392,8 +392,8 @@ func TestDockerfilePinning(t *testing.T) {
392392 dl := scut.TestDetailLogger {}
393393 s , e := testValidateDockerfileIsPinned (tt .filename , content , & dl )
394394 actual := checker.CheckResult {
395- Score : s ,
396- Error2 : e ,
395+ Score : s ,
396+ Error : e ,
397397 }
398398 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
399399 t .Fail ()
@@ -781,8 +781,8 @@ func TestDockerfilePinningWihoutHash(t *testing.T) {
781781 dl := scut.TestDetailLogger {}
782782 s , e := testValidateDockerfileIsPinned (tt .filename , content , & dl )
783783 actual := checker.CheckResult {
784- Score : s ,
785- Error2 : e ,
784+ Score : s ,
785+ Error : e ,
786786 }
787787 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
788788 t .Fail ()
@@ -970,8 +970,8 @@ func TestDockerfileScriptDownload(t *testing.T) {
970970 dl := scut.TestDetailLogger {}
971971 s , e := testValidateDockerfileIsFreeOfInsecureDownloads (tt .filename , content , & dl )
972972 actual := checker.CheckResult {
973- Score : s ,
974- Error2 : e ,
973+ Score : s ,
974+ Error : e ,
975975 }
976976 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
977977 t .Fail ()
@@ -1013,8 +1013,8 @@ func TestDockerfileScriptDownloadInfo(t *testing.T) {
10131013 dl := scut.TestDetailLogger {}
10141014 s , e := testValidateDockerfileIsFreeOfInsecureDownloads (tt .filename , content , & dl )
10151015 actual := checker.CheckResult {
1016- Score : s ,
1017- Error2 : e ,
1016+ Score : s ,
1017+ Error : e ,
10181018 }
10191019 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
10201020 t .Fail ()
@@ -1123,8 +1123,8 @@ func TestShellScriptDownload(t *testing.T) {
11231123 dl := scut.TestDetailLogger {}
11241124 s , e := testValidateShellScriptIsFreeOfInsecureDownloads (tt .filename , content , & dl )
11251125 actual := checker.CheckResult {
1126- Score : s ,
1127- Error2 : e ,
1126+ Score : s ,
1127+ Error : e ,
11281128 }
11291129 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
11301130 t .Fail ()
@@ -1178,8 +1178,8 @@ func TestShellScriptDownloadPinned(t *testing.T) {
11781178 dl := scut.TestDetailLogger {}
11791179 s , e := testValidateShellScriptIsFreeOfInsecureDownloads (tt .filename , content , & dl )
11801180 actual := checker.CheckResult {
1181- Score : s ,
1182- Error2 : e ,
1181+ Score : s ,
1182+ Error : e ,
11831183 }
11841184 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
11851185 t .Fail ()
@@ -1257,8 +1257,8 @@ func TestGitHubWorflowRunDownload(t *testing.T) {
12571257
12581258 s , e := testValidateGitHubWorkflowScriptFreeOfInsecureDownloads (p , content , & dl )
12591259 actual := checker.CheckResult {
1260- Score : s ,
1261- Error2 : e ,
1260+ Score : s ,
1261+ Error : e ,
12621262 }
12631263 if ! scut .ValidateTestReturn (t , tt .name , & tt .expected , & actual , & dl ) {
12641264 t .Fail ()
0 commit comments