anuraghazra / github-readme-stats

:zap: Dynamically generated stats for your github readmes

Home Page:https://github-readme-stats.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Supported languages GitHub action permission problem

rickstaa opened this issue · comments

Describe the bug

Issue:

The update-langs.yaml appears to lack the necessary permissions to initiate a pull request. Detailed information can be found in the workflow run.

Observation:

Upon reviewing the documentation for peter-evans/create-pull-request, it is evident that the action requires both contents: write and pull-requests: write permissions for successful pull request creation. The current configuration in update-langs.yaml only grants the pull-requests: write permission.

Recommendation:

To resolve this issue, kindly update the permissions in the workflow configuration to include both contents: write and pull-requests: write:

permissions:
  contents: write
  pull-requests: write

Additionally, it could be needed to enable the allow GitHub Actions to create pull requests feature in the repository settings (see https://github.com/peter-evans/create-pull-request?tab=readme-ov-file#workflow-permissions). This adjustment will ensure the proper functioning of the pull request creation action.

Expected behaviour

The action should have enough permissions to create a pull request.

Screenshots / Live demo link

No response

Additional context

No response

Fixed by #3352.