Skip to content

Automatically enabled "Automatic Dependency Submission (NuGet)" fails to retrieve nuget packages from internal repository.Β #133

@AkselAllas

Description

@AkselAllas

It fails with:

our request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.

The rest of our workflows pass the GITHUB_TOKEN from the workflow file, but since we can't edit the automatically enabled workflow itself, then this approach fails.

I tried adding a nuget.config as follows, but it also didn't work:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="GitHub" value="https://nuget.pkg.github.com/ORG/index.json" />
  </packageSources>
  <packageSourceCredentials>
  <GitHub>
    <add key="Username" value="user" />
    <add key="ClearTextPassword" value="%GITHUB_TOKEN%" />
  </GitHub>
</packageSourceCredentials>
</configuration>

How can I solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions