You can run a Reshift scan in your GitLab Pipeline to automate security scanning on every code check-in. This makes it easy to detect and remediate security bugs before making them to deployment.
In your GitLab Project CI\CD settings you will find "variables". Here you can secure your token by creating a key and adding the Reshift token value found in your Reshift project settings.
At the base directory of your code repository, add a
.gitlab-ci.yml pipeline configuration file by navigating to "Web IDE". Here you can choose a Maven or Gradle template and configure it to run a reshift scan.
Add the command line found in your Reshift project settings along with the secure token to pull and run Reshift scans.
mvn compile com.softwaresecured.reshift:maven-plugin:LATEST:analyse com.softwaresecured.reshift:maven-plugin:LATEST:upload -Dreshift.token=$RESHIFT_TOKEN
Run it, once the job is complete, your project scan results will appear on your Reshift dashboard.
If you have any more questions, please email us at firstname.lastname@example.org!