Teamcity

Prerequisites

Install Teamcity docker image using the following:

Docker
1
docker run -it --name teamcity-server-instance \
2
-v <path to data directory>:/data/teamcity_server/datadir \
3
-v <path to logs directory>:/opt/teamcity/logs \
4
-p <port on host>:8111 \
5
jetbrains/teamcity-server
Copied!

Instructions for SCA scans

    Create a new build step of Custom Script
    Copy the following and use it in the above build step by replacing
      lang - java | python | node | PHP | go | rust | dotnet
      api-key - your API key
      project-name - your project name
Linux
1
curl https://raw.githubusercontent.com/CloudDefenseAI/cd/master/latest/cd-latest-linux-x64.tar.gz > /tmp/cd-latest-linux-x64.tar.gz && tar -C /tmp -xzf /tmp/cd-latest-linux-x64.tar.gz && chmod +x /tmp/cdefense
2
/tmp/cdefense scan --lang=<lang> --api-key=<api-key> --verbose --project-name=<project-name>
Copied!
Example:
Last modified 1mo ago