File tree 3 files changed +12
-0
lines changed
actions/appinspect_publish
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 9
9
description : ' App ID From Splunkbase'
10
10
required : true
11
11
default : ' 5596'
12
+ splunkUser :
13
+ description : ' Splunkbase Username'
14
+ required : true
15
+ splunkPassword :
16
+ description : ' Splunkbase Password'
17
+ required : true
12
18
outputs :
13
19
time : # id of output
14
20
description : ' The time we greeted you'
Original file line number Diff line number Diff line change @@ -13,12 +13,16 @@ try {
13
13
//console.log(`The event payload: ${payload}`);
14
14
15
15
const AppID = core . getInput ( 'AppID' ) ;
16
+ const user = core . getInput ( 'User' ) ;
17
+ const password = core . getInput ( 'Password' ) ;
18
+
16
19
// Print the response body to the console
17
20
const options = {
18
21
hostname : 'splunkbase.splunk.com' ,
19
22
port : 443 ,
20
23
path : `/api/v1/app/${ AppID } /new_release/` ,
21
24
method : 'POST' ,
25
+ auth : `${ user } :${ password } ` ,
22
26
headers : {
23
27
'Content-Type' : 'application/json'
24
28
} ,
Original file line number Diff line number Diff line change 15
15
with :
16
16
who-to-greet : ' Mona the Octocat'
17
17
AppID : ' 5596'
18
+ splunkUser : ${{ secrets.SPLUNKBASE_USER }}
19
+ splunkPassword : ${{ secrets.SPLUNKBASE_PASSWORD }}
18
20
# Use the output from the `hello` step
19
21
- name : Get the output time
20
22
run : echo "The time was ${{ steps.hello.outputs.time }}"
You can’t perform that action at this time.
0 commit comments