Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Commit 2a67dbc

Browse files
author
Ben Shaw
committed
Add test scenario for creating a jira ticket on a tricy issue
1 parent 522b435 commit 2a67dbc

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.github/workflows/ci.yml

+40
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,43 @@ jobs:
8383
token: ${{ secrets.GITHUB_TOKEN }}
8484
issue_label: trivy,vulnerability,test
8585
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+

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,7 @@ typings/
9292
# DynamoDB Local files
9393
.dynamodb/
9494

95-
.vscode/
95+
.vscode/
96+
97+
*.DS_Store
98+
*.swp

0 commit comments

Comments
 (0)