Skip to content

Instantly share code, notes, and snippets.

View joshua-quek-sonarsource's full-sized avatar

Joshua Quek joshua-quek-sonarsource

  • Sonarsource
View GitHub Profile
@joshua-quek-sonarsource
joshua-quek-sonarsource / trivy_scan.sh
Created June 26, 2024 02:35
Docker Scan & Results into SonarQube
#!/bin/bash
# Ensure that NodeJS is installed!
# remove some files if they exist
rm -rf .container_scan/trivy_scan_results.json
rm -rf .container_scan/sonarqube_import.json
# Build the Docker image
docker build -t my_docker_image .