diff --git a/pkg/policies/action/action.go b/pkg/policies/action/action.go index cdfb4d5e..da8aba08 100644 --- a/pkg/policies/action/action.go +++ b/pkg/policies/action/action.go @@ -712,6 +712,10 @@ func listWorkflowsReal(ctx context.Context, c *github.Client, owner, repo string if err != nil { return nil, err } + if fc == nil { + // skip directories + continue + } content, err := fc.GetContent() if err != nil { return nil, err