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

template: github api request failure in repo generated from awesome-stars #100

Open
montchr opened this issue Dec 5, 2022 · 1 comment

Comments

@montchr
Copy link

montchr commented Dec 5, 2022

I followed the instructions to "Use awesome-stars as template" but the update repo category by language step in the workflow run resulted in an error:

Run starred --username ${USERNAME} --repository ${REPOSITORY} --sort --token ${GITHUB_TOKEN} --message 'awesome-stars category by language update by github actions cron, created by starred'
  starred --username ${USERNAME} --repository ${REPOSITORY} --sort --token ${GITHUB_TOKEN} --message 'awesome-stars category by language update by github actions cron, created by starred'
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.10.8/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.8/x64/lib
    REPOSITORY_NAME: stars
    GITHUB_TOKEN: ***
    REPOSITORY: stars
    USERNAME: montchr
Error: 403, message='Forbidden', url=URL('https://api.github.com/graphql')

From Automatic token authentication - GitHub Docs:

When you enable GitHub Actions, GitHub installs a GitHub App on your repository. The GITHUB_TOKEN secret is a GitHub App installation access token. You can use the installation access token to authenticate on behalf of the GitHub App installed on your repository. The token's permissions are limited to the repository that contains your workflow.

I'm not seeing the referenced GitHub App in my repo settings, which leads me to wonder if the usual process for setting up actions doesn't happen as it normally would when using the "awesome-stars as template" approach.

Should I have created the token manually? Is something weird going on in the repo generatiion process? Am I overlooking something obvious?

Related to #99, which is caused by this issue.

@montchr montchr changed the title github api request failure in repo generated from awesome-stars as template template: github api request failure in repo generated from awesome-stars Dec 5, 2022
@montchr
Copy link
Author

montchr commented Dec 7, 2022

This only happened once on the first manual run. The workflow has been running fine since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant