-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
45 lines (45 loc) · 1.69 KB
/
action.yml
File metadata and controls
45 lines (45 loc) · 1.69 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This is derived from https://github.com/mindersec/minder-client-installer/action.yaml
# It has more functionality, and is under a new name, as it makes some slighly
# different design decisions.
name: Load Minder Configuration
author: custcodian
description: |
This action installs the minder CLI and optionally configures it with server
authentication and uses it to install rules, data sources, and profiles from
checked-in configuration.
branding:
icon: package
color: blue
inputs:
server:
description: 'The name of the minder server to use.'
required: false
default: 'api.custcodian.dev'
project:
description: 'The Minder project to apply the configuration to. Both `project` and `directory` must be set to load rules from a directory.'
required: false
directory:
description: 'A directory (or file) containing Minder configuration YAML to apply to the server. Both `project` and `directory` must be set to load rules.'
required: false
release:
description: 'The Minder client release to download and use. Defaults to a specific version for each release of the action.'
required: false
default: 'v0.1.0'
runs:
using: composite
steps:
- name: Install Cosign
uses: sigstore/cosign-installer@v3.6.0
- name: Install and validate CLI
uses: mindersec/minder-client-installer@v1.0.0
with:
release: ${{ inputs.release }}
- name: Apply Minder ruletypes
if: (inputs.project != '' && inputs.directory != '')
shell: bash
env:
MINDER_GRPC_SERVER_PORT: 443
MINDER_GRPC_SERVER_HOST: ${{ inputs.server }}
MINDER_PROJECT: ${{ inputs.project }}
run: |
minder apply -f ${{ inputs.directory }}