Add Scope to Repositories
See original GitHub issueSummary of the new feature / enhancement
In order to make repository registration available system-wide we should add a -Scope
parameter to Register-PSRepository
. This parameter will determine the file path where the repository metadata is stored and therefore determine whether all users can access the repository registration. This change will also introduce the following parameters:
- Add a -
Scope
Parameter toRegister-PSResourceRepository
- Add a -
Scope
Parameter toSet-PSResourceRepository
- Add a -
Scope
Parameter toUnregister-PSResourceRepository
- Add a -
Scope
Parameter toGet-PSResourceRepository
- Add a -
RepositoryScope
Parameter toFind-PSResource
- Add a -
RepositoryScope
Parameter toInstall-PSResource
- Add a -
RepositoryScope
Parameter toUpdate-PSResource
- Add a -
RepositoryScope
Parameter toUninstall-PSResource
- Add a -
RepositoryScope
Parameter toPublish-PSResource
- Add a -
RepositoryScope
Parameter toSave-PSResource
Proposed technical implementation details (optional)
CurrentUser will remain the default behavior even with these changes. We will not enforce uniqueness across scope, and therefore need additional parameters to indicate repository scope.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Scopes for OAuth apps
Note: In addition to repository related resources, the repo scope also grants access to manage organization-owned resources including projects, invitations, ...
Read more >Minimal set of scopes to push to github using an access ...
As an example, the repo scope provides broad access to all data in private repositories the user has access to, in perpetuity. Fine-grained ......
Read more >Permissions to repositories in Azure Container Registry
Enter a name and description for the scope map. · Under Repositories, enter samples/hello-world , and under Permissions, select content/read and ...
Read more >scope
Scoped packages can be published and installed as of npm@2 and are supported by the primary npm registry. Unscoped packages can depend on...
Read more >Add write repository scope for personal access tokens
Problem to solve Currently the personal access tokens support only api scope with permission to change all content which can easily...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@JustinGrote We have Save-PSResource with the -IncludeXML parameter that would essentially give the desired outcome. The reason we didn’t include
-Path
or-Destination
parameter for Install-PSResource is because it would be redundant with Save-PSResource behavior.Be sure permissions for ubuntu are also taken into consideration with install scope parameter, related isse #364