We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3298dbf commit fd32801Copy full SHA for fd32801
remediation/workflow/metadata/actionmetadata_test.go
@@ -181,6 +181,13 @@ func TestKnowledgeBase(t *testing.T) {
181
182
func doesActionRepoExist(filePath string) bool {
183
splitOnSlash := strings.Split(filePath, "/")
184
+
185
+ // Check if path has enough components
186
+ if len(splitOnSlash) < 6 {
187
+ log.Printf("error in doesActionRepoExist: invalid path format %s", filePath)
188
+ return false
189
+ }
190
191
owner := splitOnSlash[5]
192
repo := splitOnSlash[6]
193
0 commit comments