Archive
September 3, 2019 ยท View on GitHub
Support
Repositories that vendorize archives of known open source packages in other supported integration formats are supported using the FOSSA archive uploader. This can be used to upload unsupported languages and run a full license scan on the included files.
Note: The archive uploader by default uploads all source code of the specified file or directory to the endpoint specified in the configuration.
Usage
Note: Automatic configuration does not exist for archive modules.
Add a module with type set to raw and target set to the directory or file to be uploaded.
analyze:
modules:
- name: your-custom-project
type: raw
target: ./<directory-or-file>
Analysis
Archive analysis is done entirely by the FOSSA backend and the FOSSA-CLI's only job is to upload source code so that it can be analyzed. The following steps are taken to ensure this is done properly:
- A tarball is created from all files located in the
target. - FOSSA-CLI asks FOSSA for a secure S3 endpoint to upload the created tarball.
- The tarball is uploaded and FOSSA begins analyzing each file individually.
Notes
FOSSA treats raw modules by default as folders without dependencies and runs a license scan on each file. If you would like to run full server side FOSSA analysis you can run fossa analyze --server-scan which will treat the uploaded folder as its own independent project which may contain dependencies.