File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Parameters
24
24
| packages | * none* | List of additional packages to install.
25
25
| install-dir | C:\cygwin | Installation directory
26
26
| site | http://mirrors.kernel.org/sourceware/cygwin/ | Mirror sites to install from, separated by whitespace
27
+ | pubkeys | * none* | Absolute paths of extra public key files (RFC4880 format), separated by whitespace
27
28
| check-sig | true | Whether to check the setup.ini signature
28
29
| add-to-path | true | Whether to add Cygwin's ` /bin ` directory to the system ` PATH `
29
30
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ inputs:
19
19
description : Should the setup.ini file signature be checked?
20
20
required : false
21
21
default : true
22
+ pubkeys :
23
+ description : Absolute paths of extra public key files (RFC4880 format), separated by whitespace
24
+ required : false
22
25
site :
23
26
description : Download site URLs separated by whitespace
24
27
required : false
76
79
$args += '-X'
77
80
}
78
81
82
+ if ( '${{ inputs.pubkeys }}' ) {
83
+ $pubkeys = '${{ inputs.pubkeys }}'
84
+ $pubkey_list = $pubkeys.Split('', [System.StringSplitOptions]::RemoveEmptyEntries)
85
+ $pubkey_list = $pubkey_list | % { $_.Trim() }
86
+ foreach ($pubkey in $pubkey_list) {
87
+ $args += '-K'
88
+ $args += $pubkey
89
+ }
90
+ }
91
+
79
92
if ($platform -eq 'x86') {
80
93
$args += '--allow-unsupported-windows'
81
94
}
You can’t perform that action at this time.
0 commit comments