Skip to content

Gradle: Resource missing for dependency when using GITHUB_TOKEN #25513

Answered by BrightRan
mindhaq asked this question in Packages
Discussion options

You must be logged in to vote

The following note may be able to answer your doubt.
NOTE: The permissions of GITHUB_TOKEN are limited to the repository that contains your workflow. If you need a token that requires permissions that aren’t available in the GITHUB_TOKEN, you can create a personal access token and set it as a secret in your repository.
As the note mentioned, if your common library is not published on the same GitHub repository where the workflow is hosted, it is not able to download the library via the GITHUB_TOKEN in the workflow. So you need to create a new PAT to get more permission scopes.
More detailed info about GITHUB_TOKEN, you can reference here: https://help.github.com/en/actions/automating-your…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
3 participants