feat(ci): add dynamic Docker Scout security scanning#18
Open
alvinveroy wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces a robust security scanning process using Docker Scout and enhances project transparency by displaying the results directly in the
README.md.Key Changes:
PR Security Scan (
docker-scout-scan.yml):main.criticalorhighseverity vulnerabilities are introduced compared to thelatestimage on themainbranch.workflow_dispatchtrigger, allowing the scan to be run manually on any branch.Dynamic README Badge (
update-readme-scout.yml):mainbranch.latestDocker image and automatically updates a new "Security" section in theREADME.mdwith the latest vulnerability report.mainbranch.README.mdUpdate:New Secrets Required:
To enable these workflows, the following secrets must be configured in the repository settings under Settings > Secrets and variables > Actions:
DOCKER_USER: Your Docker Hub username.DOCKER_PAT: A Docker Hub Personal Access Token.REPO_PAT: A GitHub Personal Access Token withreposcope, required for theupdate-readme-scout.ymlworkflow to commit changes to theREADME.md.Related Issue
None.
How to Test
Testing the PR Security Scan
ci/add-docker-scout-scanbranch, and run it.Testing the Dynamic README Update
This workflow can only be fully tested after this PR is merged.
mainbranch.docker-build-and-publish.ymlworkflow to complete on themainbranch. This will build and push the:latestimage that the README updater needs to scan.main.README.md: Once the workflow completes, check theREADME.mdfile on themainbranch. The "Security" section should be updated with the latest scan results.