Skip to content

workflow does not end after saving #1668

Closed Answered by andry81
andry81 asked this question in Q&A
Discussion options

You must be logged in to vote

Seems the reason was in the contents permission parameter.

Instead of:

▾ GITHUB_TOKEN Permissions
    Contents: read
    Metadata: read
    Packages: read

Must be:

▾ GITHUB_TOKEN Permissions
    Contents: write
    Metadata: read

To fix:

jobs:
  github-metrics:
    runs-on: ubuntu-latest

    permissions:
      contents: write

Details:

https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication

Note:

There is can be another infinite loop:

#152

  • c0f0363 Add committer_message option to use custom commit messages
    • If using commiter_token different from GITHUB_TOKEN, ensure you add [Skip GitHub Action] or handle correctly workflows skip …

Replies: 1 comment

Comment options

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