Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github(lint_dockerfile): add dockle job (#73)
Our CI already lints our Dockerfile with hadolint [1]. Add checking with dockle [2] too. For more details, see dockle's comparison table [3] of Dockerfile checking tools. The latest release of the action uses dockle 0.4.10. Pin to the latest commit of the action, which uses dockle 0.4.13. The current output is: INFO - CIS-DI-0005: Enable Content trust for Docker * export DOCKER_CONTENT_TRUST=1 before docker pull/build INFO - CIS-DI-0006: Add HEALTHCHECK instruction to the container image * not found HEALTHCHECK statement Later, we can consider resolving those items, and setting the `exit-level` to 'info'. This commit sets `accept-key` to 'PATH' to avoid the output: FATAL - CIS-DI-0010: Do not store credential in environment variables/files * Suspicious ENV key found : PATH on ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/zig (You can suppress it with --accept-key) [1] https://github.com/hadolint/hadolint [2] https://github.com/goodwithtech/dockle [3] https://github.com/goodwithtech/dockle/blob/99677e8f23e2/README.md#checkpoints-comparison
- Loading branch information