Skip to content

[Bug]: Unable to use public GitHub Packages NuGet Feeds without a PAT #2070

@freddydk

Description

@freddydk

AL-Go version

latest

Describe the issue

I have created a public NuGet feed on GitHub here: https://github.com/orgs/directions4partners/packages

If I want to use that from an AL-Go repository, you should be able to add:

  "trustedNuGetFeeds": [
    {
      "url": "https://nuget.pkg.github.com/directions4partners/index.json"
    }
  ]

to your settings file, but this will result in an error:

Image

This is because GitHub needs a token with read:packages permission - not necessarily to the target feed, just permissions to read packages from somewhere.

Adding a PAT for the sole purpose of reading foreign public NuGet feeds seems wrong.

I will create a PR with a fix for this.

Expected behavior

AL-Go should be able to resolve the public GitHub Packages NuGet feed without a token.

Steps to reproduce

Create an App with a dependency to:

    {
      "id": "e33746ef-a796-46ca-8a1a-fb3840a42c48",
      "name": "Cloud Customer Management Solution",
      "publisher": "Directions for partners",
      "version": "0.0.2.0"
    }

and the trusted NuGet feed from above.

Additional context (logs, screenshots, etc.)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions