Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

NPM Run #9

@Condabas

Description

@Condabas

Hello, we are attempting to add this to our workflows, but when we run it, we are getting the below error. We have stored the API key as a repo secret and place the lx-manifest.yml file at the root of the repo. What I am not is clear on is what the host value should be. When we try any other value, we get "Couldn't get API-Token!" for an error.

Run leanix/github-actions-store-leanix-plugin@main
with:
host: seagen.leanix.net
api-token: ***
manifest-path: /lx-manifest.yml
dependency-manager: NPM
stage: production
version: 2.2.0
allow-failure: true
env:
HOST: seagen.leanix.net
LEANIX_MANIFEST_PATH: /lx-manifest.yml
DEPENDENCY_MANAGER: NPM
STAGE: production
VERSION: 2.2.0
ALLOW_FAILURE: true
/usr/bin/docker run --name f00f9c7cc45d4dbeba38449893aeb599_c6c44c --label 229416 --workdir /github/workspace --rm -e "HOST" -e "LEANIX_MANIFEST_PATH" -e "DEPENDENCY_MANAGER" -e "STAGE" -e "VERSION" -e "ALLOW_FAILURE" -e "INPUT_HOST" -e "INPUT_API-TOKEN" -e "INPUT_MANIFEST-PATH" -e "INPUT_DEPENDENCY-MANAGER" -e "INPUT_STAGE" -e "INPUT_VERSION" -e "INPUT_ALLOW-FAILURE" -e "INPUT_MAVEN-SETTINGS-PATH" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/gdct/gdct":"/github/workspace" 229416:f00f9c7cc45d4dbeba38449893aeb599 "NPM" ""
Node repository detected. Attempting to generate dependency file
/usr/local/bin/license-checker -> /usr/local/lib/node_modules/license-checker/bin/license-checker

  • license-checker@25.0.1
    added 58 packages from 85 contributors in 3.8s
    npm WARN saveError ENOENT: no such file or directory, open '/github/workspace/package.json'
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN enoent ENOENT: no such file or directory, open '/github/workspace/package.json'
    npm WARN workspace No description
    npm WARN workspace No repository field.
    npm WARN workspace No README data
    npm WARN workspace No license field.

up to date in 0.248s
found 0 vulnerabilities

Found error
Error: No packages found in this path..
at /usr/local/lib/node_modules/license-checker/lib/index.js:354:19
at /usr/local/lib/node_modules/license-checker/node_modules/read-installed/read-installed.js:142:5
at /usr/local/lib/node_modules/license-checker/node_modules/read-installed/read-installed.js:263:14
at asyncMap (/usr/local/lib/node_modules/license-checker/node_modules/slide/lib/async-map.js:27:18)
at next (/usr/local/lib/node_modules/license-checker/node_modules/read-installed/read-installed.js:234:5)
at /usr/local/lib/node_modules/license-checker/node_modules/read-installed/read-installed.js:179:7
at LOOP (fs.js:1752:14)
at processTicksAndRejections (internal/process/task_queues.js:79:11)
Getting generated dependency file
Couldn't access the API
Error: HTTP status code 400

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