forked from mondoohq/actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
27 lines (27 loc) · 882 Bytes
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Mondoo Action
description: Mondoo Actions to scan IaC configs, containers, servers, clouds, and Kubernetes
branding:
icon: "shield"
color: "purple"
inputs:
args:
description: >-
Additional arguments to pass to cnspec client.
required: false
log-level:
description: >-
Sets the log level: error, warn, info, debug, trace (default "info")
default: info
required: false
service-account-credentials:
description: "Base64 encoded service account credentials used to authenticate with Mondoo Platform"
required: false
runs:
using: "composite"
steps:
- run: echo "MONDOO_CONFIG_BASE64=${{ inputs.service-account-credentials }}" >> $GITHUB_ENV
if: env.MONDOO_CONFIG_BASE64 == ''
shell: bash
- uses: "docker://mondoo/cnspec:11"
with:
args: ${{ inputs.args }} --log-level "${{ inputs.log-level }}"