This is part of the course DevSecOps. You will cover two aspects of container security.
- 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".
- The GitHub actions should run automatically and be green.
- In
.github/workflows/docker-image.yml
, uncomment the block labeled "Version 1" to enable Trivy.- After the next successful run of the GitHub actions, you should now see hundreds of security issues being reported.
- In
Dockerfile
, change the base image to the "slim" version.- After the next successful run of the GitHub actions, you should now see 90% of the security issues being closed.
- In
.github/workflows/docker-image.yml
, uncomment the block labeled "Version 2" to enable Signing the Docker Image.- After the next successful run of the GitHib actions, you should now see that the built package is signed.