LicenseFinder icon indicating copy to clipboard operation
LicenseFinder copied to clipboard

Don't get licenses when running docker in Azure Pipeline

Open chkrause opened this issue 6 months ago • 1 comments

I used docker to run the license_finder.

When I set it up locally on my machine all works fine and I get the report as expected with all the packages inside the project and also all known licenses are detected. When I run the same thin inside an azure pipeline I only get the packages but all the licenses are recognized as unknown.

I already checked the following things:

  • Version of licences_finder is the same: yes
  • Does the docker have access to the internet: yes
  • npm versions are the same: yes

What I couldn't find out: Where do I find detail log files of license_finder to look at these? Do you have any idea what's going wrong here?

docker pull licensefinder/license_finder
docker run -it -d --name license_finder -v /home/vsts/work/1/self:/scan -v /home/vsts/work/1/config:/config licensefinder/license_finder
docker exec -t -w /scan license_finder bash -c "source ~/.bash_profile && license_finder report --decisions-file=/config/dependency_decisions.yml --format html > report.html"

Local results: image

Azure pipeline results: image

chkrause avatar Jan 18 '24 15:01 chkrause

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Jan 18 '24 15:01 cf-gitbot