Skip to content
Discussion options

You must be logged in to vote

The setting that determines whether the repo's token has permission to edit files in the repo is just below the cutoff of that screenshot, under 'Workflow permissions' - could you verify that that is set to 'Read and write permissions'?

In addition to that, the workflow file can further restrict the scope of the permissions. You've got this in yours:

https://github.com/DorothyToth/dorothytoth/blob/8597a9bb8fd6c3a25043eb4f3f9cd7f1dee8c9e2/.github/workflows/preview.yml#L15-L18

permissions:
  contents: read
  pages: write
  id-token: write

which explicitly sets the content permission to 'read', not 'write'. At the very least you would need content: write for the deployment and pull-requests…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rossjrw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants