Skip to content

How publish to only one organisation package repository #26078

Answered by BrightRan
pkernevez asked this question in Actions
Discussion options

You must be logged in to vote

@pkernevez,

When you create a personal access token (PAT), there is not method to limit the scope of this PAT to a specific organization or repository. What you can choose is to limit the scope to private repositories or public repositories or all repositories on your organisations and user account. More details, see “Available scopes”.

The permissions of the GITHUB_TOKEN are limited to the repository that contains your workflow.
That means the GITHUB_TOKEN is only available to the repository where the workflow is running. You can’t use it to access other repositories in the workflow.

Replies: 2 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
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
2 participants