Bump checkmarx/kics-github-action from 2.1.7 to 2.1.15 #244
docker-image.yml
on: pull_request
build-and-push-image
1m 45s
Annotations
11 warnings
|
[INFO] Apt Get Install Lists Were Not Deleted:
Dockerfile#L45
After using apt-get install, it is needed to delete apt-get lists
|
|
[INFO] APT-GET Not Avoiding Additional Packages:
Dockerfile#L45
Check if any apt-get installs don't use '--no-install-recommends' flag to avoid installing additional packages.
|
|
[LOW] Unpinned Actions Full Length Commit SHA:
.github/workflows/docker-image.yml#L67
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
|
|
[LOW] Unpinned Actions Full Length Commit SHA:
.github/workflows/docker-image.yml#L47
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
|
|
[LOW] Healthcheck Instruction Missing:
Dockerfile#L62
Ensure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working
|
|
[LOW] Chown Flag Exists:
Dockerfile#L69
It is considered a best practice for every executable in a container to be owned by the root user even if it is executed by a non-root user, only execution permissions are required on the file, not ownership
|
|
[LOW] Chown Flag Exists:
Dockerfile#L68
It is considered a best practice for every executable in a container to be owned by the root user even if it is executed by a non-root user, only execution permissions are required on the file, not ownership
|
|
[LOW] Chown Flag Exists:
Dockerfile#L18
It is considered a best practice for every executable in a container to be owned by the root user even if it is executed by a non-root user, only execution permissions are required on the file, not ownership
|
|
[MEDIUM] Apt Get Install Pin Version Not Defined:
Dockerfile#L45
When installing a package, its pin version should be defined
|
|
[HIGH] Missing User Instruction:
Dockerfile#L62
Always set a user in the runtime stage of your Dockerfile. Without it, the container defaults to root, even if earlier build stages define a user.
|
|
Variables should be defined before their use:
Dockerfile#L64
UndefinedVar: Usage of undefined variable '$FIRMWARE_VERSION'
More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
openbikesensor~OpenBikeSensorFlasher~IACY37.dockerbuild
|
40.5 KB |
sha256:222f5007a7796f9b99f27019193768a430c187218b83d7a390700a75c2b8b0c4
|
|