Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making change in imageVersionnotusinglatest.rego #1068

Merged

Conversation

shreyas-phansalkar-189
Copy link
Contributor

Making changes in imageVersionnotusinglatest policy

-- changed the rego to raise a violation if latest keyword is used

@codecov
Copy link

codecov bot commented Oct 25, 2021

Codecov Report

Merging #1068 (3a210e4) into master (ffd5d75) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1068   +/-   ##
=======================================
  Coverage   78.62%   78.62%           
=======================================
  Files         238      238           
  Lines        6494     6494           
=======================================
  Hits         5106     5106           
  Misses       1075     1075           
  Partials      313      313           

@sonarcloud
Copy link

sonarcloud bot commented Oct 26, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -3,5 +3,5 @@ package accurics
{{.prefix}}{{.name}}{{.suffix}}[dockerFrom.id]{
dockerFrom := input.docker_from[_]
config := dockerFrom.config
not contains(config, ":latest")
contains(config, ":latest")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if no tag is mentioned then also latest is pulled, please include that check also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants