Permission denied to github-actions[bot]

Viewed 320

I'm using mkdocs to generate documents for my project,now I can't deploy those docs to Github pages,it tell me:

remote: Permission to XXX.git denied to github-actions[bot]. fatal: unable to access 'XXX': The requested URL returned error: 403

This is my CI config file: https://paste.ubuntu.com/p/zyw2y8jW5M/

And my secrets of the repository: The two GIT_ACTIONS_PUSH are all my personal access token

And if I start CI process manually,CI will crash like this: How to solve "Invalid Distribution" problem?

How to solve?

1 Answers

I think the persist-credentials: false and fetch-depth is the issue. It is deleting the credentials of the git while checking out the repository.

You can try removing the line and try.

    - uses: actions/checkout@v3
Related