Skip to content

Commit

Permalink
Explicitly specify owner when listing packages (#2643)
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherias authored Mar 14, 2024
1 parent 9b78546 commit e1e193f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/providers/github/github_rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (c *GitHub) ListPackagesByRepository(ctx context.Context, isOrg bool, owner
if isOrg {
artifacts, resp, err = c.client.Organizations.ListPackages(ctx, owner, opt)
} else {
artifacts, resp, err = c.client.Users.ListPackages(ctx, "", opt)
artifacts, resp, err = c.client.Users.ListPackages(ctx, owner, opt)
}
if err != nil {
if resp.StatusCode == http.StatusNotFound {
Expand Down

0 comments on commit e1e193f

Please sign in to comment.