Skip to content

Commit 180fa01

Browse files
Merge pull request #2 from GeorgeDavis-Ibexlabs/github-actions
Fix Dockerfile on the GitHub Action
2 parents 78d6d91 + 8d81b95 commit 180fa01

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
FROM python:3-slim
22

3-
COPY . /ci
3+
COPY . /action/workspace
44

5-
WORKDIR /ci
5+
WORKDIR /action/workspace
66

77
RUN pip install --no-cache-dir -r requirements.txt
88

9-
ENTRYPOINT ["python3", "main.py"]
9+
CMD ["/action/workspace/main.py"]
10+
ENTRYPOINT ["python3", "-u"]

action.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,40 @@
1-
name: "Create JIRA tickets from SARIF"
2-
description: "Create JIRA tickets from SARIF"
1+
---
2+
name: 'Create JIRA tickets from SARIF'
3+
description: 'Create JIRA tickets from SARIF'
4+
author: 'GeorgeDavis-Ibexlabs'
35
inputs:
46
input_type:
5-
description: "SARIF ingest type"
7+
description: 'SARIF ingest type'
68
required: false
79
default: 'file'
810
input_format:
9-
description: "SARIF ingest format"
11+
description: 'SARIF ingest format'
1012
required: false
1113
default: 'sarif'
1214
jira_cloud_url:
13-
description: "JIRA Cloud URL"
15+
description: 'JIRA Cloud URL'
1416
required: true
1517
jira_project_key:
16-
description: "JIRA Cloud Project key"
18+
description: 'JIRA Cloud Project key'
1719
required: true
1820
jira_auth_email:
19-
description: "JIRA Cloud Authentication email"
21+
description: 'JIRA Cloud Authentication email'
2022
required: true
2123
jira_api_token:
22-
description: "JIRA Cloud API key"
24+
description: 'JIRA Cloud API key'
2325
required: true
2426
jira_default_issue_labels:
25-
description: "Comma-separated labels that would be tagged on all issues created by the Python script"
27+
description: 'Comma-separated labels that would be tagged on all issues created by the Python script'
2628
required: false
27-
default: ""
29+
default: ''
2830
jira_use_atlassian_document_format:
29-
description: "Set true or false to use Atlassian Document Format (ADF)"
31+
description: 'Set true or false to use Atlassian Document Format (ADF)'
3032
required: false
31-
default: "false"
33+
default: 'false'
3234
jira_create_sub_tasks:
33-
description: "Set true or false to create sub-tasks"
35+
description: 'Set true or false to create sub-tasks'
3436
required: false
35-
default: "false"
37+
default: 'false'
3638
branding:
3739
icon: 'file-plus'
3840
color: 'purple'

0 commit comments

Comments
 (0)