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

[CODE] Issue with CI pipeline for fossa test #1503

Open
kw-andy opened this issue Feb 11, 2025 · 1 comment
Open

[CODE] Issue with CI pipeline for fossa test #1503

kw-andy opened this issue Feb 11, 2025 · 1 comment

Comments

@kw-andy
Copy link

kw-andy commented Feb 11, 2025

The context:

I've built an image docker-registry.acmegroup.co.uk/ink-developpement/images-docker/securite/fossa/fossa:1.0.0 with fossa inside.

When I run this command on my dev environment, fossa does the test after the analyze.

cd "${CI_PROJECT_DIR}" ; FOSSA_API_KEY=$FOSSA_API_KEY fossa ; sleep 60 ; FOSSA_API_KEY=$FOSSA_API_KEY fossa test

Note ${CI_PROJECT_DIR} contains the project directory

Yet I'm trying to run the fossa test through a gitlab ci, it gives me the following error

$ cd "${CI_PROJECT_DIR}" ; FOSSA_API_KEY=$FOSSA_API_KEY fossa ; sleep 60 ; FOSSA_API_KEY=$FOSSA_API_KEY fossa test
INFO Initializing...
INFO Analyzing module (1/2): .
WARNING Could not find Node.JS: could not resolve command
WARNING Could not find NPM: could not resolve command
WARNING Could not determine deps from node_modules
WARNING Could not determine deps from yarn lockfile
INFO Analyzing module (2/2): .
WARNING Could not find Node.JS: could not resolve command
WARNING Could not find NPM: could not resolve command
WARNING Could not determine deps from node_modules
WARNING Could not determine deps from yarn lockfile
INFO Uploading analysis...
============================================================
    View FOSSA Report:
    https://app.fossa.com/projects/custom+51[36](https://sources.acmegroup.co.uk/experimentations/poec/projet_npm/-/jobs/393115#L36)6%2Fsources.acmegroup.co.uk%2Fexperimentations%2Fpoec%2Fprojet_npm/refs/branch/HEAD/f498dbef3d0556da8d3f0bb784bab9c1ffe85f9f
============================================================
INFO Waiting for analysis to complete...
INFO Project status is . Waiting for FOSSA scan results...
ERROR: Could not test revision: Could not load build:: unknown task status while waiting for FOSSA to analyze build: 
Cleaning up project directory and file based variables
00:48
ERROR: Job failed: exit code 1

This is my yaml

licence_check:
  stage: licence_check
  image: docker-registry.acmegroup.co.uk/ink-developpement/images-docker/securite/fossa/fossa:1.0.0
  tags: 
    - ovh_vm_docker_tfbuild
  script:
    - cd "${CI_PROJECT_DIR}" ; FOSSA_API_KEY=$FOSSA_API_KEY fossa ; sleep 60 ; FOSSA_API_KEY=$FOSSA_API_KEY fossa test

Note : When I'm running on the gitlab ci the fossa without the test, it works correctly (cd "${CI_PROJECT_DIR}" ; FOSSA_API_KEY=$FOSSA_API_KEY fossa)

Any ideas?

Copy link

Thank you @kw-andy for creating this issue. If this is in regards to a defect, product question or feature request: you should use our support portal at https://support.fossa.com to file a request, as you would receive more immediate support.

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