You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to trigger CircleCI Pipeline
Error: Error: Request failed with status code 403
Error: Request failed with status code 403
To resolve this, I thought of using the pull_request_target event, where CI runs with the base of the branch so secrets can be securely shared. Then checking out the HEAD of the PR to trick CircleCI into using this ref:
We have a very similar issue with Orb development, where we want people to send in PRs but we of course can not give access to secrets which publish orbs.
What we have done which seems to be the safest option, we review the PR manually and once satisfied, we checkout the branch and push it to a "local" branch on the origin.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
This GitHub action requires access to a
CCI_TOKEN
. Because of GitHub's security, forks do not have access to secrets. So the CircleCI job will not trigger when thepull_request
event is used:To resolve this, I thought of using the
pull_request_target
event, where CI runs with the base of the branch so secrets can be securely shared. Then checking out the HEAD of the PR to trick CircleCI into using this ref:However, the triggering branch still points to
master
:Describe the solution you'd like
Any suggestion on how to resolve this? I guess this logic would need to be adapted:
trigger-circleci-pipeline-action/index.js
Lines 17 to 28 in d8e1aed
Teachability, documentation, adoption, migration strategy
An addition to the README would be sufficient.
What is the motivation / use case for changing the behavior?
It should work for forks.
The text was updated successfully, but these errors were encountered: