-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from centriascolocation/feature/2-ecr-scan-on-push
scan all ECRs for scan-on-push
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
title '99 ECR Scan On Push' | ||
|
||
control 'ecr-repositories-99.3' do | ||
title 'ECR scan on push is activated' | ||
desc 'Test that images are scanned for vulnerabilities at a push to repository' | ||
|
||
aws_ecr_repositories.names.each do |repository_name| | ||
describe aws_ecr_repository(repository_name) do | ||
its('image_scanning_configuration.scan_on_push') { should eq true } | ||
end | ||
end | ||
end |