'Github Action "bad credentials"

I am trying to add a action to my github repo from the marketplace. Everytime I push I get an email that it fails and this is the only error I am getting:
{"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}
I tried going to the website they are refering to and I tried adding the "secrets.GITHUB_TOKEN" to my mail.yml like they tell me to and it doesn't seem to do anything.

main.yml:

name: CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Run a one-line script
      run: echo Hello, world!
    - name: Run ESLint
      uses: jinjubei/eslint-action@master #Touch
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}


Solution 1:[1]

As Sujith mentioned in one of the comments above, your token has expired or is not set. You can read more about personal access tokens here.

Also, while the default GITHUB_TOKEN exposed to actions works for some actions, some actions require additional rights to run. I did not see the exact linter action you are using but found this one.

Its documentation states the following:

Important: Make sure to exclude the .github directory in your ESLint and Prettier configs as the default GITHUB_TOKEN cannot be used to update workflow files due to the missing workflow permission

Linking to the following docs: https://github.com/marketplace/actions/lint-action#limitations

I hope this helps.

NOTE: If you update your token and dependabot pull requests still fail, run @dependabot recreate to fix the workflow.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 schalkneethling