-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refusing to allow a GitHub App to create or update workflow .github/workflows/issue-inactive.yml
without workflows
permission
#44
Comments
I have the same issue, though obviously on a different workflow file. Seems that a Personal Access Token is required to get around this? Seems related to #12 |
I agree, that does seem similar to #12. In a nutshell -- if everything else works, but you just can't push at the final step, it's almost certainly permission/credentials related. That has been my experience during development. Check out the Setup Notes here on the wiki and see if they help. If not, let me know and we can try to dig into the issue a bit. |
I've followed the other issue, and after moving the token to the checkout step it started to work. BTW, that's for this handy action! 👏🏻 👏🏻 👏🏻 |
I am unable to get the following working, which (if I understand correctly) is using my PAT as a checkout token as mentioned by @josesimoes, but
|
@m-roberts on the above: I've removed the token on the |
Sadly I have modified my earlier code to remove the token from the sync action, but I still get an error. |
@m-roberts Check if you have 'write' permissions for actions enabled.
If it's all set to 'write', then I wonder if workflow write permissions are not available on the action token anymore. In that case, try creating a new token with those permissions and using it in the checkout step and the sync step of the workflow. The only thing stopping you here is permissions, not the action itself. If there have been Action updates that affect permissions, I am not yet aware of them. |
Did anyone figure this out? |
Fix workflow permission error as per aormsby/Fork-Sync-With-Upstream-action#44 (comment)
When encountering this error, three things need to be checked:
Often, the third point is easily overlooked - name: Checkout target repo
uses: actions/checkout@v4
with:
# optional: set the branch to checkout,
# sync action checks out your 'target_sync_branch' anyway
ref: ${{ env.target_sync_branch }}
token: ${{ secrets.MY_GH_TOKEN_W }}
# REQUIRED step
# Step 2: run the sync action
- name: Sync upstream changes
id: sync
uses: aormsby/[email protected]
with:
target_sync_branch: ${{ env.target_sync_branch }}
target_repo_token: ${{ secrets.MY_GH_TOKEN_W }}
upstream_sync_branch: ${{ env.upstream_sync_branch }}
upstream_sync_repo: ${{ env.upstream_sync_repo }} |
Hello everyone I was Having this issue too |
When the other files in .github directory changed, the sync action will failed:
The text was updated successfully, but these errors were encountered: