Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sailikhith-stepsecurity committed Jan 16, 2025
1 parent 4b43059 commit 93e48d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions remediation/workflow/metadata/actionmetadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ func TestKnowledgeBase(t *testing.T) {

func doesActionRepoExist(filePath string) bool {
splitOnSlash := strings.Split(filePath, "/")

// Check if path has enough components
if len(splitOnSlash) < 6 {
log.Printf("error in doesActionRepoExist: invalid path format %s", filePath)
return false
}

owner := splitOnSlash[5]
repo := splitOnSlash[6]

Expand Down

0 comments on commit 93e48d5

Please sign in to comment.