@@ -33,6 +33,7 @@ func TestCraftingStateGetEnvAllowList(t *testing.T) {
3333 name : "V1 schema with env vars" ,
3434 state : & CraftingState {
3535 Schema : & CraftingState_InputSchema {
36+ //nolint:staticcheck
3637 InputSchema : & workflowcontract.CraftingSchema {
3738 EnvAllowList : []string {"ENV1" , "ENV2" , "BUILD_NUMBER" },
3839 },
@@ -57,6 +58,7 @@ func TestCraftingStateGetEnvAllowList(t *testing.T) {
5758 name : "V1 schema with no env vars" ,
5859 state : & CraftingState {
5960 Schema : & CraftingState_InputSchema {
61+ //nolint:staticcheck
6062 InputSchema : & workflowcontract.CraftingSchema {
6163 EnvAllowList : []string {},
6264 },
@@ -93,6 +95,7 @@ func TestCraftingStateGetEnvAllowList(t *testing.T) {
9395}
9496
9597func TestCraftingStateGetMaterials (t * testing.T ) {
98+ //nolint:staticcheck
9699 v1Materials := []* workflowcontract.CraftingSchema_Material {
97100 {
98101 Type : workflowcontract .CraftingSchema_Material_ARTIFACT ,
@@ -104,6 +107,7 @@ func TestCraftingStateGetMaterials(t *testing.T) {
104107 },
105108 }
106109
110+ //nolint:staticcheck
107111 v2Materials := []* workflowcontract.CraftingSchema_Material {
108112 {
109113 Type : workflowcontract .CraftingSchema_Material_SBOM_CYCLONEDX_JSON ,
@@ -113,14 +117,16 @@ func TestCraftingStateGetMaterials(t *testing.T) {
113117 }
114118
115119 testCases := []struct {
116- name string
117- state * CraftingState
120+ name string
121+ state * CraftingState
122+ //nolint:staticcheck
118123 expectedMaterials []* workflowcontract.CraftingSchema_Material
119124 }{
120125 {
121126 name : "V1 schema with materials" ,
122127 state : & CraftingState {
123128 Schema : & CraftingState_InputSchema {
129+ //nolint:staticcheck
124130 InputSchema : & workflowcontract.CraftingSchema {
125131 Materials : v1Materials ,
126132 },
0 commit comments