-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (46 loc) · 1.75 KB
/
Copy pathaction.yml
File metadata and controls
48 lines (46 loc) · 1.75 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
46
47
48
# 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: Minder Community
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: upload-cloud
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.3.0'
runs:
using: composite
steps:
- name: Install Cosign
uses: sigstore/cosign-installer@v4.1.2
- name: Install and validate CLI
uses: mindersec/minder-client-installer@v1.1.2
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 }}
RULES_DIRECTORY: ${{ inputs.directory }}
run: |
minder apply -f "$RULES_DIRECTORY"