Skip to content

Commit 78d6d91

Browse files
Merge pull request #1 from GeorgeDavis-Ibexlabs/github-actions
Adding GitHub actions
2 parents df3ded8 + 7a44a92 commit 78d6d91

File tree

6 files changed

+71
-3
lines changed

6 files changed

+71
-3
lines changed

.dockerignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# GitHub files
2+
.git
3+
.gitignore
4+
.gitattributes
5+
README.md
6+
LICENSE
7+
action.yml
8+
9+
# Secrets
10+
config.json**
11+
.env**
12+
13+
# Docker files
14+
Dockerfile
15+
.dockerignore
16+
17+
# SARIF files (for testing)
18+
*.sarif*
19+
!*.sarif.test

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,4 @@ cython_debug/
153153

154154
# Custom exceptions
155155
config.json
156-
**/*.sarif
156+
**/*.sarif*

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3-slim
2+
3+
COPY . /ci
4+
5+
WORKDIR /ci
6+
7+
RUN pip install --no-cache-dir -r requirements.txt
8+
9+
ENTRYPOINT ["python3", "main.py"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ If you're thinking of adding a new feature, consider opening an issue first to d
8383
docker login
8484
```
8585
```sh
86-
docker build . -f Dockerfile -t github-sarif-to-jira:latest
86+
docker build --no-cache --progress=plain . -f Dockerfile -t github-sarif-to-jira:latest 2>&1 | tee build.log
8787
```
8888

8989
```sh

action.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Create JIRA tickets from SARIF"
2+
description: "Create JIRA tickets from SARIF"
3+
inputs:
4+
input_type:
5+
description: "SARIF ingest type"
6+
required: false
7+
default: 'file'
8+
input_format:
9+
description: "SARIF ingest format"
10+
required: false
11+
default: 'sarif'
12+
jira_cloud_url:
13+
description: "JIRA Cloud URL"
14+
required: true
15+
jira_project_key:
16+
description: "JIRA Cloud Project key"
17+
required: true
18+
jira_auth_email:
19+
description: "JIRA Cloud Authentication email"
20+
required: true
21+
jira_api_token:
22+
description: "JIRA Cloud API key"
23+
required: true
24+
jira_default_issue_labels:
25+
description: "Comma-separated labels that would be tagged on all issues created by the Python script"
26+
required: false
27+
default: ""
28+
jira_use_atlassian_document_format:
29+
description: "Set true or false to use Atlassian Document Format (ADF)"
30+
required: false
31+
default: "false"
32+
jira_create_sub_tasks:
33+
description: "Set true or false to create sub-tasks"
34+
required: false
35+
default: "false"
36+
branding:
37+
icon: 'file-plus'
38+
color: 'purple'
39+
runs:
40+
using: 'docker'
41+
image: 'Dockerfile'

main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from issues.issues import Issues
88
from sarif_file_handler.sarif_file_handler import SARIFFileHandler
99
from config_handler.config_handler import ConfigHandler
10-
# from config.config_parser import ConfigHandler
1110
from atlassian_doc_builder import load_adf, ADFDoc
1211
from atlassian.adf import AtlassianDocumentFormatBuilder
1312

0 commit comments

Comments
 (0)