Ref: #55
https://github.com/OpenAPITools/openapi-generator-pip/actions/runs/25132610526/job/73662970317?pr=55#step:7:48
This PR is from a fork. GitHub restricts the GITHUB_TOKEN to read-only
for fork PRs triggered by the pull_request event.
To fix this, use the pull_request_target event instead:
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
Note: pull_request_target runs 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
Ref: #55
https://github.com/OpenAPITools/openapi-generator-pip/actions/runs/25132610526/job/73662970317?pr=55#step:7:48