AstuteSource / chasten

:dizzy: Chasten Uses XML and XPATH to Check a Python Program's AST for Specified Patterns!
https://pypi.org/project/chasten/
GNU General Public License v2.0
7 stars 8 forks source link

Coverage badge action not authorized to pull from secret gist #82

Closed simojo closed 9 months ago

simojo commented 9 months ago

Description: In some of my development branches, the build fails because the dynamic-badges-action fails when it runs. It produces the following output:

Run schneegans/dynamic-badges-action@v1.6.0
Failed to get gist, response status code: 401, status message: Unauthorized
/home/runner/work/_actions/schneegans/dynamic-badges-action/v1.6.0/index.js:[20](https://github.com/AstuteSource/chasten/pull/68/checks#step:14:21)9
        if (oldGist.body.files[filename]) {
                              ^

TypeError: Cannot read properties of undefined (reading 'covbadge.json')
    at /home/runner/work/_actions/schneegans/dynamic-badges-action/v1.6.0/index.js:209:31
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

I found this issue mentioned on their repository here, but it appears to be when Dependabot is used to make commits.

The underlying problem is that, when I pushed these commits, a change was triggered such that the action decided it needed to recalculate the badges for the project. The only problem was that, when it did so, it was not able to pull from the private gist that was presumably set up by professor kapfhammer. @AidanNeeson do you know of what the origin of this issue could be?

I suspect that the reason why this does not show on other commits is because others have not changed integral structure of the program like I did in two of the PRs I submitted. I'm not 100% confident in this assumption, but it's just a hypothesis.

See https://github.com/Schneegans/dynamic-badges-action#configuration for information on how they recommend it to be configured.

simojo commented 9 months ago

@AidanNeeson

simojo commented 9 months ago

@AidanNeeson