mock-test-scan/
├── Dockerfile
├── main.go
├── terraform/
│ ├── main.tf
│ ├── variables.tf
│ └── outputs.tf
├── .github/
│ └── workflows/
│ ├── build-and-push.yml
│ ├── codeql-analysis.yml
│ └── trivy-scan.yml
└── README.md
- Clone the repository.
- Build the application using
docker build -t mock-app .
. - Run the application with
docker run -p 8080:8080 mock-app
. - Use Terraform to provision infrastructure:
terraform init && terraform apply
. - Update GitHub repository secrets
DOCKER_USERNAME
andDOCKER_PASSWORD
to enable Docker image build and push. - CodeQL and Trivy scans are automated through GitHub Actions.
Note: This application and infrastructure contain vulnerabilities for testing purposes. Use in controlled environments only!