Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
simojo opened this issue Sep 30, 2023 · 2 comments · Fixed by #87
Closed

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

simojo opened this issue Sep 30, 2023 · 2 comments · Fixed by #87
Assignees
Labels
bug Something isn't working infrastructure Docker and CI/CD setup and/or configuration question Further information is requested

Comments

@simojo
Copy link
Collaborator

simojo commented Sep 30, 2023

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/[email protected]
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 simojo added bug Something isn't working question Further information is requested infrastructure Docker and CI/CD setup and/or configuration labels Sep 30, 2023
@CalebKendra CalebKendra self-assigned this Oct 6, 2023
@simojo
Copy link
Collaborator Author

simojo commented Oct 11, 2023

@AidanNeeson

1 similar comment
@simojo
Copy link
Collaborator Author

simojo commented Oct 13, 2023

@AidanNeeson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infrastructure Docker and CI/CD setup and/or configuration question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants