Skip to content

Commit acd0ad2

Browse files
committed
CheckAndEnsureSafePR was ignored when merging
1 parent 9af6292 commit acd0ad2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/migrations/github.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,9 @@ func (g *GithubDownloaderV3) GetNewPullRequests(page, perPage int, updatedAfter
841841
return nil, false, err
842842
}
843843
allPRs = append(allPRs, basePR)
844+
845+
// SECURITY: Ensure that the PR is safe
846+
_ = CheckAndEnsureSafePR(allPRs[len(allPRs)-1], g.baseURL, g)
844847
}
845848

846849
return allPRs, len(issues) < perPage, nil

0 commit comments

Comments
 (0)