CSV export is available in CodeScan Cloud with this command line tool available through npm.
You will need:
- A CodeScan Cloud account.
- npm installed - Installation Instructions
There are 2 ways to install the CodeScan Export tool.
- Clone the repository.
- Navigate to the folder in your command line.
- Type npm install -g
- Once the installation is finished, type codescan-export -v to check the tool is available.
- In your command line, type npm install -g codescan-export
- Once the installation is finished, type codescan-export -v to check the tool is available.
It is recommended that you create an environment variable for your CodeScan Cloud token to avoid using it in plaintext for each call. Name the variable CODESCAN_TOKEN
and assign it the token created in your Account Security Settings.
With the token set as an environment variable you can run the tool with the following command.
codescan-export [ORGANISATION KEY] [PROJECT KEY]
How to find your Organisation Key
Without the token set as an environment variable you can run the tool with the following command. Click on the links for information on how to find the keys.
CODESCAN_TOKEN=[TOKEN] codescan-export [ORGANISATION KEY] [PROJECT KEY]
How to find your Organisation Key
Type codescan-export -h
to see the detailed usage for this tool including how to filter the issues.