Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private registry url is incorrect #355

Open
danpowell88 opened this issue Aug 31, 2024 · 0 comments
Open

Private registry url is incorrect #355

danpowell88 opened this issue Aug 31, 2024 · 0 comments

Comments

@danpowell88
Copy link

Trying to use the cli to debug an issue with hanging (which could be related to this issue I guess).

Config:

job:
    package-manager: npm_and_yarn
    allowed-updates:
      - update-type: all
    source:
        provider: github
        repo: org/repo
        directory: /src/ui
credentials:
  - type: npm-registry
    url: https://nuget.org.com/npm/npm-org
    token: xxxxxxx
  - type: npm-registry
    url: https://nuget.org.com/npm/npm-anotherorg
    token: xxxxxxx

My .npmrc file looks like the following an lives in the /src/ui/.npmrc location

registry=https://registry.npmjs.org
@pkg3:registry=https://nuget.org.com/npm/npm-anotherorg/
@org:registry=https://nuget.org.com/npm/npm-org/
@pkg2:registry=https://nuget.org.com/npm/npm-org/
scripts-prepend-node-path=true

When dependabot runs it outputs the following line

    "data": {
        "dependencies": [
            {
                "name": "@pkg3/sd-angular",
                "requirements": [
                    {
                        "file": "package.json",
                        "groups": [
                            "dependencies"
                        ],
                        "requirement": "^15.0.3",
                        "source": {
                            "type": "registry",
                            "url": "https://nuget.org.com"
                        }
                    }
                ],
                "version": "15.0.3"
            },
....

And then later

{"data":{"error-type":"private_source_authentication_failure","error-details":{"source":"nuget.org.com"}},"type":"record_update_job_error"}

I suspect its not expecting there to be subdirectories in the path or something else odd is going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant