Skip to content

Commit

Permalink
Trust the CodeLinaro fork (#236)
Browse files Browse the repository at this point in the history
This will make it easier for me to get CI running on my pull requests.
  • Loading branch information
alexreinking committed Jun 23, 2023
1 parent 6cfae90 commit 3e87c9f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions master/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1718,8 +1718,12 @@ class SafeGitHubEventHandler(GitHubEventHandler):
payload['action'] = 'synchronize'
return super().handle_pull_request(payload, event)

# Skip external pull requests that originate from a fork, ie. not from a trusted collaborator.
if pr['head']['repo']['full_name'] != 'halide/Halide':
# Skip external pull requests that originate from untrusted forks
trusted_repos = (
'halide/Halide', # the primary repository is obviously trusted
'CodeLinaro/Halide', # the Qualcomm open-source staging fork is trustworthy
)
if pr['head']['repo']['full_name'] not in trusted_repos:
# print("PR %s was skipped due to being external:" % str(pr['head']['repo']['full_name']))
return self.skip()

Expand Down

0 comments on commit 3e87c9f

Please sign in to comment.