GsActions / commit-message-checker

GitHub Action that checks commit messages of pushes and pull request against a regex pattern
MIT License
99 stars 56 forks source link

`Error: HttpError: Bad credentials` when `checkAllCommitMessages` is `"true"` #80

Closed cubuspl42 closed 1 year ago

cubuspl42 commented 2 years ago

Code of Conduct

Is there an existing issue for this?

GitHub-hosted runner

ubuntu-latest

Additional runner information

No response

Current Behavior

When I changed the checkAllCommitMessages to "true", I started getting a Error: HttpError: Bad credentials error.

Step specification:

- name: Check commit message
  uses: GsActions/commit-message-checker@v1
  with:
    checkAllCommitMessages: "true"
    pattern: "^(?!WIP).*$"
    error: "The first line cannot start with WIP"

Job output:

Run GsActions/commit-message-checker@v1
  with:
    checkAllCommitMessages: true
    pattern: ^(?!WIP).*$
    error: The first line cannot start with WIP
    flags: gm
    excludeTitle: false
    excludeDescription: false
    accessToken: false
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.16-1/x6[4](https://github.com/oxidefrp/oxide-kotlin/runs/8246008060?check_suite_focus=true#step:4:4)

Error: HttpError: Bad credentials

Expected Behavior

No Error: HttpError: Bad credentials error.

Steps To Reproduce

No response

Anything else?

No response

cubuspl42 commented 1 year ago

Well, it seems that I should have read the readme more carefully.

          accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true