kube linter action
v1.0.5
这是用于扫描kubernetes yaml文件和使用kube-lint的github工作流程中的helm图表的GitHub操作。
.github/workflows目录。directory调整为您的Kubernetes或Helm Files所在的位置。请参阅下面的参数。config参数。每次推动回购主分支和拉动请求时,新的工作流程都会运行。
如果Kube-linter检测到问题,则工作流将失败。您会在kube-linter-action的输出和安全性|中找到问题。代码扫描警报查看您的GitHub存储库(如果使用了提供的示例工作流)。
- name : Scan repo with kube-linter
uses : stackrox/[email protected]
with :
directory : yamls
config : .kube-linter/config.yaml
format : sarif
output-file : kube-linter.sarif| 参数名称 | 必需的? | 描述 |
|---|---|---|
directory | (必需的) | 文件或目录的扫描路径,绝对或相对于回购的根。 |
config | (选修的) | 如果要使用非默认配置,则通往配置文件的路径。 |
format | (选修的) | 输出格式。允许的值: sarif , plain , json 。默认值是plain 。 |
output-file | (选修的) | 将存储Kube-Linter输出的文件的路径。默认值是kube-linter.log 。如果文件存在,将被覆盖。 |
version | (选修的) | kube-linter版本要使用,例如“ 0.2.4”。默认情况下使用最新的可用版本。 |