Configure CI for PR from forked repo
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
Research direction
Start with the failed GitHub Actions run linked in the issue and inspect the workflow used by PR #55. Check the fork-PR event and permission settings against the documented pull_request_target approach, then verify that the workflow can comment on fork PRs without executing untrusted fork code with elevated permissions.
Written by the indexing model from the issue text.
Description
Ref: #55
This PR is from a fork. GitHub restricts the GITHUB_TOKEN to read-only
for fork PRs triggered by thepull_requestevent.To fix this, use the
pull_request_targetevent instead:on: pull_request_target: types: [opened, synchronize, reopened] permissions: contents: read pull-requests: writeNote:
pull_request_targetruns in the context of the base branch.
Be cautious when checking out fork code — never run untrusted code
from the fork with elevated permissions.For more information, see:
https://github.com/MishaKav/pytest-coverage-comment#fork-prs
- Dominant language
- Python
- Stars
- 31
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenAPITools/openapi-generator-pip
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Drop Python 3.10 SupportPossibly taken @eggplants claimed this 9 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 20/100
All issues in OpenAPITools/openapi-generator-pip
Similar issues
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
juandresrodca/AdminForge#66 ·
Maintainers usually reply within 1 day
-
backend/local comp/tools P2 tool/terminal type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NousResearch/hermes-agent#158788 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
public-apis/public-apis#9330 · 1 reaction ·
Maintainers usually reply within 12 days
-
approved author-page correction move-papers
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
acl-org/acl-anthology#11043 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day