This is part of the course DevSecOps.
Warning
This playground is not complete yet. Because you need to interact with AWS, this guide needs to be tested and adapted to work with the free tier.
- Click on Use this template to create a new repository in your GitHub account (don't fork it), and make sure to set the visibility to "Public".
- Go to "Settings" > "Secrets and variables" > "Actions"
- Create Repository Secrets
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
- In
.github/workflows/tfsec.yml
, uncomment the block labeled "Version 1" to enable tfsec.- After the next successful run of the GitHub actions, you should now see about a dozen of security issues being reported.
- In
iac/terraform.tfvars
, remove the existingcidr
line and uncomment the "Version 2" block.- After the next successful run of the GitHub actions, you should now see two of the security issues being resolved.