OCNS / SoftwareWG

The primary housekeeping repository for the INCF/OCNS Software Working Group, and the sources for the web site.
https://ocns.github.io/SoftwareWG/
11 stars 3 forks source link

Deploy broken: github-actions bot does not have write permissions to repo #136

Closed sanjayankur31 closed 11 months ago

sanjayankur31 commented 11 months ago

Our deployment here is currently broken because github-actions bot does not have write permissions to the repository. @appukuttan-shailesh : I think you need to modify the permissions at the organizational level to fix this. I can't seem to enable it only for the repository (even though I'm an admin for the OCNS org?):

https://github.com/OCNS/SoftwareWG/settings/actions -> I cannot select "read and write permissions" in "workflow permissions".

Organizational policies described here:

https://docs.github.com/en/enterprise-cloud@latest/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise#enforcing-a-policy-for-workflow-permissions-in-your-enterprise

sanjayankur31 commented 11 months ago

For reference, error from a GH action:

ghp-import -m "Generate Pelican site" -b gh-pages "/home/runner/work/SoftwareWG/SoftwareWG/output"
git push origin gh-pages --force
remote: Permission to OCNS/SoftwareWG.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/OCNS/SoftwareWG/': The requested URL returned error: 403
make: *** [Makefile:82: github] Error 128
Error: Process completed with exit code 2.

https://github.com/OCNS/SoftwareWG/actions/runs/5585615878/jobs/10208579428

appukuttan-shailesh commented 11 months ago

Should be fixed now both at the org level and for this repo as well.

sanjayankur31 commented 11 months ago

Thanks, works now :+1: