7
7
issue_comment :
8
8
types : [created]
9
9
workflow_dispatch :
10
- inputs :
11
- platform :
12
- description : ' runs-on argument'
13
- required : false
14
- args :
15
- description : ' argument'
16
- required : false
10
+ inputs :
11
+ platform :
12
+ description : " runs-on argument"
13
+ required : false
14
+ args :
15
+ description : " argument"
16
+ required : false
17
17
jobs :
18
18
Authorization :
19
19
name : Authorization
20
- runs-on : blossom
20
+ runs-on : blossom
21
21
outputs :
22
22
args : ${{ env.args }}
23
23
steps :
24
24
- name : Check if comment is issued by authorized person
25
25
run : blossom-ci
26
26
env :
27
- OPERATION : ' AUTH'
27
+ OPERATION : " AUTH"
28
28
REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
29
REPO_KEY_DATA : ${{ secrets.BLOSSOM_KEY }}
30
30
Vulnerability-scan :
@@ -37,21 +37,21 @@ jobs:
37
37
with :
38
38
repository : ${{ fromJson(needs.Authorization.outputs.args).repo }}
39
39
ref : ${{ fromJson(needs.Authorization.outputs.args).ref }}
40
- lfs : ' true'
41
-
42
- # repo specific steps
40
+ lfs : " true"
41
+
42
+ # repo specific steps
43
43
# - name: Setup java
44
44
# uses: actions/setup-java@v1
45
45
# with:
46
46
# java-version: 1.8
47
-
47
+
48
48
# add blackduck properties https://synopsys.atlassian.net/wiki/spaces/INTDOCS/pages/631308372/Methods+for+Configuring+Analysis#Using-a-configuration-file
49
49
# - name: Setup blackduck properties
50
50
# run: |
51
51
# PROJECTS=$(mvn -am dependency:tree | grep maven-dependency-plugin | awk '{ out="com.nvidia:"$(NF-1);print out }' | grep rapids | xargs | sed -e 's/ /,/g')
52
52
# echo detect.maven.build.command="-pl=$PROJECTS -am" >> application.properties
53
53
# echo detect.maven.included.scopes=compile >> application.properties
54
-
54
+
55
55
- name : Run blossom action
56
56
uses : NVIDIA/blossom-action@main
57
57
env :
61
61
args1 : ${{ fromJson(needs.Authorization.outputs.args).args1 }}
62
62
args2 : ${{ fromJson(needs.Authorization.outputs.args).args2 }}
63
63
args3 : ${{ fromJson(needs.Authorization.outputs.args).args3 }}
64
-
64
+
65
65
Job-trigger :
66
66
name : Start ci job
67
67
needs : [Vulnerability-scan]
@@ -70,19 +70,18 @@ jobs:
70
70
- name : Start ci job
71
71
run : blossom-ci
72
72
env :
73
- OPERATION : ' START-CI-JOB'
73
+ OPERATION : " START-CI-JOB"
74
74
CI_SERVER : ${{ secrets.CI_SERVER }}
75
75
REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76
-
76
+
77
77
Upload-Log :
78
78
name : Upload log
79
79
runs-on : blossom
80
- if : github.event_name == 'workflow_dispatch'
80
+ if : github.event_name == 'workflow_dispatch'
81
81
steps :
82
82
- name : Jenkins log for pull request ${{ fromJson(github.event.inputs.args).pr }} (click here)
83
83
run : blossom-ci
84
84
env :
85
- OPERATION : ' POST-PROCESSING'
85
+ OPERATION : " POST-PROCESSING"
86
86
CI_SERVER : ${{ secrets.CI_SERVER }}
87
87
REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88
-
0 commit comments