-
Notifications
You must be signed in to change notification settings - Fork 13
/
action.yml
93 lines (78 loc) · 2.71 KB
/
action.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#
# GitHub Action manifest for PSRule
#
name: 'PSRule'
description: 'Run rules in a GitHub repository.'
author: 'Microsoft'
branding:
icon: 'check-circle'
color: 'green'
inputs:
inputType:
description: 'Determines the type of input to use for PSRule.'
default: 'repository'
required: false
inputPath:
description: 'The path PSRule will look for files to validate.'
default: ''
required: false
modules:
description: 'A comma separated list of modules to use for analysis.'
default: ''
required: false
source:
description: 'An path containing rules to use for analysis.'
default: '.ps-rule/'
required: false
baseline:
description: 'The name of a PSRule baseline to use.'
default: ''
required: false
conventions:
description: 'A comma separated list of conventions to use.'
default: ''
required: false
option:
description: 'The path to an options file.'
default: ''
required: false
outcome:
description: 'Filters output to include results with the specified outcome.'
default: ''
required: false
outputFormat:
description: 'The format to use when writing results to disk. When set to None results are not written to disk.'
default: 'None'
required: false
outputPath:
description: 'The file path to write results to.'
default: ''
required: false
path:
description: 'The working directory PSRule is run from.'
default: ''
required: false
prerelease:
description: 'Determine if a pre-release module version is installed.'
default: 'false'
required: false
repository:
description: 'The name of the PowerShell repository where PSRule modules are installed from. By default this is the PowerShell Gallery.'
default: 'PSGallery'
required: false
summary:
description: 'Determines if a job summary is written.'
default: 'true'
required: false
version:
description: 'The specific version of PSRule to use.'
default: ''
required: false
runs:
using: 'composite'
steps:
- name: 'Analysis'
shell: pwsh
working-directory: ${{ github.workspace }}
run: |-
${{ github.action_path }}/powershell.ps1 -InputType '${{ inputs.inputType }}' -InputPath '${{ inputs.inputPath }}' -Modules '${{ inputs.modules }}' -Source '${{ inputs.source }}' -Baseline '${{ inputs.baseline }}' -Conventions '${{ inputs.conventions }}' -Option '${{ inputs.option }}' -Outcome '${{ inputs.outcome }}' -OutputFormat '${{ inputs.outputFormat }}' -OutputPath '${{ inputs.outputPath }}' -Path '${{ inputs.path }}' -PreRelease '${{ inputs.prerelease }}' -Repository '${{ inputs.repository }}' -Summary '${{ inputs.summary }}' -Version '${{ inputs.version }}'