You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result.Error("Step %q uses image %q with an invalid digest. Error: %s", step, img, err)
109
+
result.Error("Step %q uses image %q with an invalid digest. Error: %s", stepName, img, err)
78
110
returnresult
79
111
}
80
112
81
113
if!tagWithDigest(rep.String()) {
82
-
result.Warn("Step %q uses image %q; consider using a image tagged with specific version along with digest eg. abc.io/img:v1@sha256:abcde", step, img)
114
+
result.Warn("Step %q uses image %q; consider using an image tagged with specific version along with digest eg. abc.io/img:v1@sha256:abcde", stepName, img)
83
115
}
84
116
85
117
returnresult
86
118
}
87
119
88
120
ref, err:=name.NewTag(img, name.WeakValidation)
89
121
iferr!=nil {
90
-
result.Error("Step %q uses image %q with an invalid tag. Error: %s", step, img, err)
122
+
result.Error("Step %q uses image %q with an invalid tag. Error: %s", stepName, img, err)
91
123
returnresult
92
124
}
93
125
94
126
ifstrings.EqualFold(ref.Identifier(), "latest") {
95
-
result.Error("Step %q uses image %q which must be tagged with a specific version", step, img)
127
+
result.Error("Step %q uses image %q which must be tagged with a specific version", stepName, img)
96
128
}
97
129
98
130
// According to [CIS benchmarks](https://cloud.google.com/kubernetes-engine/docs/concepts/cis-benchmarks).
99
131
// > 5.4.1 Prefer using secrets as files over secrets as environment variables
"Step %q references %q directly from its script block. For reliability and security, consider putting the param into an environment variable of the Step and accessing that environment variable in your script instead.",
0 commit comments