-
Notifications
You must be signed in to change notification settings - Fork 518
Adds additional policies for dockerfile #996
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
Conversation
1.exposeport 2.image version not using latest 3.use of apk upgrade 4.yum update
1. runusingcd 2.Changing Default Shell Using SHELL Command
Codecov Report
@@ Coverage Diff @@
## master #996 +/- ##
=======================================
Coverage 78.58% 78.58%
=======================================
Files 224 224
Lines 5650 5650
=======================================
Hits 4440 4440
Misses 930 930
Partials 280 280
|
Kudos, SonarCloud Quality Gate passed!
|
package accurics | ||
|
||
{{.prefix}}{{.name}}{{.suffix}}[dockerFrom]{ | ||
dockerFrom := input.docker_from[_] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HEALTHCHECK is in itself a command, so check in docker_dockerfile
{{.prefix}}{{.name}}{{.suffix}}[dockerFrom.id]{ | ||
dockerFrom := input.docker_from[_] | ||
config := dockerFrom.config | ||
not contains(config, ":latest") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be contains
@@ -0,0 +1,6 @@ | |||
package accurics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check this in dockerfile as input.
@@ -1,7 +1,7 @@ | |||
package accurics | |||
|
|||
{{.prefix}}{{.name}}{{.suffix}}[dockerFrom]{ | |||
dockerFrom := input.docker_from[_] | |||
dockerFrom := input.docker_dockerfile[_] | |||
config := dockerFrom.config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config is an array for dockerfile as input
No description provided.