Skip to content
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

document Github Action: Permission to denied to github-actions[bot]. #875

Closed
d-morrison opened this issue Jul 10, 2024 · 4 comments
Closed
Labels
bug an unexpected problem or unintended behavior

Comments

@d-morrison
Copy link

Describe the bug

I'm trying to use the document workflow and getting an error in the push stage:

remote: Permission to UCD-SERG/serocalculator.git denied to github-actions[bot].

To Reproduce

Here's a link to the log: https://github.com/UCD-SERG/serocalculator/actions/runs/9878798147/job/27283530105?pr=177

Expected behavior

A successful commit to this PR by GitHub actions.

Additional context

Notably, the pr-commands action (triggered by commenting /document on the PR) does work: https://github.com/UCD-SERG/serocalculator/actions/runs/9878831608

@d-morrison d-morrison added the bug an unexpected problem or unintended behavior label Jul 10, 2024
@gaborcsardi
Copy link
Member

Add

    permissions:
      contents: write

to the document job.

@d-morrison
Copy link
Author

Thanks - that worked!

@remlapmot
Copy link
Contributor

By the way I have sent a fix for this in #874 (a few of the examples are missing this).

Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants