Skip to content

CodeQL picks-up incorrect private NPM registry credentials #3525

@nshift-diva

Description

@nshift-diva

Hi,

We are testing CodeQL on GHE for some projects and we have NPM private registries configured at organization level using username and password.

When the default CodeQL action runs this is picking-up the registry as having token auth.
Image

Using registries_credentials input.
Credentials loaded for the following registries:
 Type: npm_registry; Host: undefined; Url: https://my-company.jfrog.io/artifactory/api/npm/my-npm-feed/ Username: undefined; Password: false; Token: true
Type: nuget_feed; Host: undefined; Url: https://my-company.jfrog.io/artifactory/api/nuget/v3/my-nuget-feed/index.json Username: my-service-account; Password: true; Token: false
Warning: Failed to retrieve information about the linked release: Not Found - https://docs.github.com/rest/releases/releases#get-a-release-by-tag-name
Did not find 'update-job-proxy-linux64.tar.gz' in the linked release, falling back to hard-coded version.
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/708eeb9f-ac43-412c-94ff-dbf679ecc2c5 -f /home/runner/work/_temp/e62bf087-66e1-47b0-9aed-ce0e4ad3a548
Proxy started on 127.0.0.1:49152
Error: Connection test to https://my-company.jfrog.io/artifactory/api/npm/my-npm-feed/ failed. (401)
Successfully tested connection to https://my-company.jfrog.io/artifactory/api/nuget/v3/my-nuget-feed/index.json (200)

Is there something I am missing? Did I skip some configuration step?

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