diff --git a/integration-test.sh b/integration-test.sh index a7e9be5..203eb27 100755 --- a/integration-test.sh +++ b/integration-test.sh @@ -5,6 +5,18 @@ source ./test-helpers.sh FILE_NAME=`./getBinaryName.sh` chmod +x ./dist/$FILE_NAME +# Rename all project manifests to correct format. +# This is done to avoid security scanning them for deprecated/vulnerable library dependancies +# These sample projects are not intended to be used in production, but are used for testing +mv ./sample-projects/dotnet-samples/PLACEHOLDER_MANIFEST ./sample-projects/dotnet-samples/sample.csproj +mv ./sample-projects/go-samples/compatible/PLACEHOLDER_MANIFEST ./sample-projects/go-samples/compatible/go.mod +mv ./sample-projects/go-samples/incompatible/PLACEHOLDER_MANIFEST ./sample-projects/go-samples/incompatible/go.mod +mv ./sample-projects/java-samples/PLACEHOLDER_MANIFEST ./sample-projects/java-samples/pom.xml +mv ./sample-projects/node-samples/PLACEHOLDER_MANIFEST ./sample-projects/node-samples/package.json +mv ./sample-projects/python-samples/compatible/PLACEHOLDER_MANIFEST ./sample-projects/python-samples/compatible/requirements.txt +mv ./sample-projects/python-samples/incompatible/PLACEHOLDER_MANIFEST ./sample-projects/python-samples/incompatible/requirements.txt +mv ./sample-projects/ruby-samples/PLACEHOLDER_MANIFEST ./sample-projects/ruby-samples/Gemfile + echo "Running samples to console" ./dist/$FILE_NAME ./sample-projects/ > console_test.txt test_report 'console' 'console_test.txt' "${lines_to_find[@]}" diff --git a/sample-projects/dotnet-samples/sample.csproj b/sample-projects/dotnet-samples/PLACEHOLDER_MANIFEST similarity index 100% rename from sample-projects/dotnet-samples/sample.csproj rename to sample-projects/dotnet-samples/PLACEHOLDER_MANIFEST diff --git a/sample-projects/go-samples/compatible/go.mod b/sample-projects/go-samples/compatible/PLACEHOLDER_MANIFEST similarity index 100% rename from sample-projects/go-samples/compatible/go.mod rename to sample-projects/go-samples/compatible/PLACEHOLDER_MANIFEST diff --git a/sample-projects/go-samples/incompatible/go.mod b/sample-projects/go-samples/incompatible/PLACEHOLDER_MANIFEST similarity index 100% rename from sample-projects/go-samples/incompatible/go.mod rename to sample-projects/go-samples/incompatible/PLACEHOLDER_MANIFEST diff --git a/sample-projects/java-samples/pom.xml b/sample-projects/java-samples/PLACEHOLDER_MANIFEST similarity index 100% rename from sample-projects/java-samples/pom.xml rename to sample-projects/java-samples/PLACEHOLDER_MANIFEST diff --git a/sample-projects/node-samples/package.json b/sample-projects/node-samples/PLACEHOLDER_MANIFEST similarity index 100% rename from sample-projects/node-samples/package.json rename to sample-projects/node-samples/PLACEHOLDER_MANIFEST diff --git a/sample-projects/python-samples/compatible/requirements.txt b/sample-projects/python-samples/compatible/PLACEHOLDER_MANIFEST similarity index 100% rename from sample-projects/python-samples/compatible/requirements.txt rename to sample-projects/python-samples/compatible/PLACEHOLDER_MANIFEST diff --git a/sample-projects/python-samples/incompatible/requirements.txt b/sample-projects/python-samples/incompatible/PLACEHOLDER_MANIFEST similarity index 100% rename from sample-projects/python-samples/incompatible/requirements.txt rename to sample-projects/python-samples/incompatible/PLACEHOLDER_MANIFEST diff --git a/sample-projects/ruby-samples/Gemfile b/sample-projects/ruby-samples/PLACEHOLDER_MANIFEST similarity index 100% rename from sample-projects/ruby-samples/Gemfile rename to sample-projects/ruby-samples/PLACEHOLDER_MANIFEST