vn7n24fzkq / github-profile-summary-cards

A tool to generate your github summary card for profile README
https://github-profile-summary-cards.vercel.app/demo
MIT License
2.6k stars 313 forks source link

[BUG] Invalid status code:128 #129

Closed Key5n closed 1 year ago

Key5n commented 1 year ago

Describe the bug like #113 #104 ,Running github actions, my workflow said invalid status code:128.

I fixed this problem by giving "Read and write permission to GITHUB_TOKEN" like below. But I can't miss why I got stuck although followed your tutorial. github_profile_summary_fixed

It seems that it couldn't commit and push updated contents.
Do you know the reason? I am new to Github Actions.

To Reproduce Steps to reproduce the behavior: Follow your tutorial

Expected behavior Finish tutorial

Screenshots github_profile_summary_cards_failure

Desktop (please complete the following information):

vn7n24fzkq commented 1 year ago

Hi @key5n , sorry for the late reply. Can you re-trigger the workflow? For some reason, the git push failed sometimes.

Key5n commented 1 year ago

Thank you for the reply. I re-triggered it with no default write permission to GITHUB_TOKEN. But I faced the same error. I also followed the tutorial again, but nothing has changed.

With default write permission to GITHUB_TOKEN, it succeeded though.

vn7n24fzkq commented 1 year ago

Great! Seems we missing that permission in the document. Thanks for the issue.

cimadai commented 1 year ago

I faced to same issue and finally I succeeded to push with select Read and write permissions in Workflow permissions section.

Key5n commented 1 year ago

Yes, that is another solution. If you mind giving read and write permission to GITHUB_TOKEN for all-scopes, we can avoid this by only adding content: read permission to the job. I verified it works on my repository.

vn7n24fzkq commented 1 year ago

Great! I think that is a better solution.