This repository was archived by the owner on Jun 29, 2021. It is now read-only.
File tree 2 files changed +44
-1
lines changed
2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 83
83
token : ${{ secrets.GITHUB_TOKEN }}
84
84
issue_label : trivy,vulnerability,test
85
85
issue_title : Security Alert Test
86
+
87
+ test4 :
88
+ name : Test Jira Integration
89
+ runs-on : ubuntu-18.04
90
+ steps :
91
+ - uses : actions/checkout@v2.3.4
92
+
93
+ - name : Install dependencies
94
+ run : yarn install
95
+
96
+ - name : Build
97
+ run : yarn run build
98
+
99
+ - name : Pull docker image
100
+ run : docker pull ${{ env.IMAGE_NAME }}
101
+
102
+ - uses : ./
103
+ id : trivy
104
+ with :
105
+ issue : ' true'
106
+
107
+ - name : Test trivy
108
+ if : steps.trivy.outputs.issue_number == ''
109
+ run : exit 1
110
+
111
+ - name : Jira
112
+ id : jira
113
+ if : steps.trivy.outputs.issue_number != ''
114
+ uses : atlassian/gajira-create@master
115
+ with :
116
+ project : GA
117
+ issuetype : Incident
118
+ summary : Trivy has detected an incidenct ${{steps.trivy.outputs.issue_number}} with a Docker container
119
+ description : ${{steps.trivy.outputs.html_url}}
120
+
121
+ - name : Test Jira
122
+ if : steps.jira.outputs.issue == ''
123
+ run : exit 1
124
+
125
+
Original file line number Diff line number Diff line change @@ -92,4 +92,7 @@ typings/
92
92
# DynamoDB Local files
93
93
.dynamodb /
94
94
95
- .vscode /
95
+ .vscode /
96
+
97
+ * .DS_Store
98
+ * .swp
You can’t perform that action at this time.
0 commit comments