coveralls-python-action icon indicating copy to clipboard operation
coveralls-python-action copied to clipboard

Invalid github token

Open toonarmycaptain opened this issue 4 years ago • 2 comments

I got an error "Invalid github token", tried regenerating the token on coveralls.io, copy/pasted it into my github secrets, and I get the same error. The secret is being found, so I'm fairly sure it's not a typo.

You can see the error here: https://github.com/toonarmycaptain/dionysus/runs/1767326019?check_suite_focus=true

I'm probably doing something wrong, any suggestions?

toonarmycaptain avatar Jan 26 '21 06:01 toonarmycaptain

I tried using github-token: ${{ github.token }} for the toke instead of github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}, as I found this as a solution in a couple of other tools, to no avail. The error changes to 'AssertionError: {'error': 'No build matching CI build number 511396654 found'}'

toonarmycaptain avatar Jan 26 '21 06:01 toonarmycaptain

This was solved by setting: env: GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} # Set token for Coveralls and running coveralls after each test run in the test matrix.

toonarmycaptain avatar Jan 28 '21 17:01 toonarmycaptain