question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Scope to Repositories

See original GitHub issue

Summary 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 to Register-PSResourceRepository
  • Add a -Scope Parameter to Set-PSResourceRepository
  • Add a -Scope Parameter to Unregister-PSResourceRepository
  • Add a -Scope Parameter to Get-PSResourceRepository
  • Add a -RepositoryScope Parameter to Find-PSResource
  • Add a -RepositoryScope Parameter to Install-PSResource
  • Add a -RepositoryScope Parameter to Update-PSResource
  • Add a -RepositoryScope Parameter to Uninstall-PSResource
  • Add a -RepositoryScope Parameter to Publish-PSResource
  • Add a -RepositoryScope Parameter to Save-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:open
  • Created 2 years ago
  • Reactions:10
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
anamnavicommented, Nov 21, 2022

@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.

1reaction
StevenBucher98commented, Mar 11, 2022

Be sure permissions for ubuntu are also taken into consideration with install scope parameter, related isse #364

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found