How does one push to one’s fork, without adding workflows?
I don’t see any reason for my fork to be running any CI whatsoever – the main repository is already doing that. So I excluded workflows from my access token.
Then:
$ git checkout develop
Switched to branch 'develop'
Your branch is ahead of 'origin/develop' by 97 commits.
(use "git push" to publish your local commits)
dlm@dlm:~/share/supercollider$ git push origin develop
Username for 'https://github.com': jamshark70
Password for 'https://jamshark70@github.com':
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/jamshark70/supercollider.git
! [remote rejected] develop -> develop (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/actions.yml` without `workflow` scope)
error: failed to push some refs to 'https://github.com/jamshark70/supercollider.git'
Um… so… well, I guess it’s cosmetic because nobody should be using the develop branch from the fork… but it used to be possible to get rid of the “your branch is ahead of” message, but now it seems to be quite difficult to clean that up without duplicating CI work that is being done somewhere else.
Do we have a recommendation about how to handle this?
I don’t think you can remove the workflow file, since that would diverge from the main repo.
Does that mean that going to Settings > Actions > Actions permissions > “Disable Actions” on your fork did not work?
Marcin