From 3c90a4cf00fb59df5c638a019c30b586f4fdc9a3 Mon Sep 17 00:00:00 2001 From: Gustavo Carvalho Date: Fri, 12 Dec 2025 14:36:38 -0300 Subject: [PATCH] fix: should continue if missing permissions Signed-off-by: Gustavo Carvalho --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index 3c3296b..ee7253d 100644 --- a/main.go +++ b/main.go @@ -126,6 +126,9 @@ func (l *DependabotPlugin) Eval(req *proto.EvalRequest, apiHelper runner.ApiHelp func (l *DependabotPlugin) FetchSecurityTeamMembers(ctx context.Context) ([]*github.User, error) { members, _, err := l.githubClient.Teams.ListTeamMembersBySlug(ctx, *l.config.Organization, *l.config.SecurityTeamName, nil) if err != nil { + if isPermissionError(err) { + return nil, nil + } return nil, err } return members, nil @@ -139,6 +142,9 @@ func (l *DependabotPlugin) FetchRepositoryDependabotAlerts(ctx context.Context, }, ListCursorOptions: github.ListCursorOptions{}, }) + if isPermissionError(err) { + return nil, nil + } return alerts, err }