2023-03-16T10:26:35.5270570Z ##[warning]Unexpected input(s) 'jira_issue_type', valid inputs are ['jira_url', 'jira_user', 'jira_token', 'jira_project', 'jira_labels', 'github_token', 'sync_direction', 'issue_end_state', 'issue_reopen_state'] 2023-03-16T10:26:35.5372723Z ##[group]Run github/ghas-jira-integration@v1.2.3 2023-03-16T10:26:35.5373237Z with: 2023-03-16T10:26:35.5373852Z github_token: *** 2023-03-16T10:26:35.5374260Z jira_url: https://appdirect.jira.com 2023-03-16T10:26:35.5374732Z jira_user: shweta.singh@appdirect.com 2023-03-16T10:26:35.5375784Z jira_token: *** 2023-03-16T10:26:35.5376149Z jira_project: CODESEC 2023-03-16T10:26:35.5376459Z sync_direction: gh2jira 2023-03-16T10:26:35.5376825Z jira_issue_type: Dependabot 2023-03-16T10:26:35.5377228Z issue_end_state: Done 2023-03-16T10:26:35.5377591Z issue_reopen_state: To Do 2023-03-16T10:26:35.5377951Z ##[endgroup] 2023-03-16T10:26:35.5701362Z ##[group]Run pip3 install -r requirements.txt 2023-03-16T10:26:35.5701977Z pip3 install -r requirements.txt 2023-03-16T10:26:35.5702583Z REPOSITORY_NAME="$(echo "$GITHUB_REPOSITORY" | cut -d/ -f 2)" 2023-03-16T10:26:35.5703099Z ./gh2jira sync \ 2023-03-16T10:26:35.5703516Z  --gh-url "$GITHUB_API_URL" \ 2023-03-16T10:26:35.5704207Z  --gh-token "***" \ 2023-03-16T10:26:35.5704647Z  --gh-org "$GITHUB_REPOSITORY_OWNER" \ 2023-03-16T10:26:35.5705127Z  --gh-repo "$REPOSITORY_NAME" \ 2023-03-16T10:26:35.5705607Z  --jira-url "https://appdirect.jira.com" \ 2023-03-16T10:26:35.5706061Z  --jira-user "shweta.singh@appdirect.com" \ 2023-03-16T10:26:35.5707175Z  --jira-token "***" \ 2023-03-16T10:26:35.5707579Z  --jira-project "CODESEC" \ 2023-03-16T10:26:35.5708001Z  --jira-labels "" \ 2023-03-16T10:26:35.5708395Z  --direction "gh2jira" \ 2023-03-16T10:26:35.5708806Z  --issue-end-state "Done" \ 2023-03-16T10:26:35.5709250Z  --issue-reopen-state "To Do" 2023-03-16T10:26:35.5768577Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-03-16T10:26:35.5769466Z ##[endgroup] 2023-03-16T10:26:36.1065653Z Defaulting to user installation because normal site-packages is not writeable 2023-03-16T10:26:36.8894611Z Collecting flask~=2.0.0 2023-03-16T10:26:36.9944489Z Downloading Flask-2.0.3-py3-none-any.whl (95 kB) 2023-03-16T10:26:37.0245739Z ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 95.6/95.6 KB 3.6 MB/s eta 0:00:00 2023-03-16T10:26:37.0895964Z Collecting requests~=2.26.0 2023-03-16T10:26:37.1006014Z Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB) 2023-03-16T10:26:37.1084949Z ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.3/62.3 KB 9.2 MB/s eta 0:00:00 2023-03-16T10:26:37.1484716Z Collecting jira~=3.0.0 2023-03-16T10:26:37.1598319Z Downloading jira-3.0.1-py3-none-any.whl (61 kB) 2023-03-16T10:26:37.1669127Z ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 KB 10.3 MB/s eta 0:00:00 2023-03-16T10:26:37.1876336Z Collecting logging-formatter-anticrlf==1.2 2023-03-16T10:26:37.1986892Z Downloading logging-formatter-anticrlf-1.2.tar.gz (4.0 kB) 2023-03-16T10:26:37.2038247Z Preparing metadata (setup.py): started 2023-03-16T10:26:37.3970633Z Preparing metadata (setup.py): finished with status 'done' 2023-03-16T10:26:37.4318039Z Collecting itsdangerous>=2.0 2023-03-16T10:26:37.4389869Z Downloading itsdangerous-2.1.2-py3-none-any.whl (15 kB) 2023-03-16T10:26:37.4900985Z Collecting Werkzeug>=2.0 2023-03-16T10:26:37.5003744Z Downloading Werkzeug-2.2.3-py3-none-any.whl (233 kB) 2023-03-16T10:26:37.5236256Z ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 233.6/233.6 KB 10.7 MB/s eta 0:00:00 2023-03-16T10:26:37.5264141Z Requirement already satisfied: click>=7.1.2 in /usr/lib/python3/dist-packages (from flask~=2.0.0->-r requirements.txt (line 1)) (8.0.3) 2023-03-16T10:26:37.5270444Z Requirement already satisfied: Jinja2>=3.0 in /usr/lib/python3/dist-packages (from flask~=2.0.0->-r requirements.txt (line 1)) (3.0.3) 2023-03-16T10:26:37.5394959Z Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests~=2.26.0->-r requirements.txt (line 2)) (1.26.5) 2023-03-16T10:26:37.5401151Z Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests~=2.26.0->-r requirements.txt (line 2)) (2020.6.20) 2023-03-16T10:26:37.6583188Z Collecting charset-normalizer~=2.0.0 2023-03-16T10:26:37.6699826Z Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB) 2023-03-16T10:26:37.6754687Z Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests~=2.26.0->-r requirements.txt (line 2)) (3.3) 2023-03-16T10:26:37.7112217Z Collecting defusedxml 2023-03-16T10:26:37.7223176Z Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB) 2023-03-16T10:26:37.7265774Z Requirement already satisfied: setuptools>=20.10.1 in /usr/lib/python3/dist-packages (from jira~=3.0.0->-r requirements.txt (line 3)) (59.6.0) 2023-03-16T10:26:37.7514039Z Collecting requests-oauthlib>=1.1.0 2023-03-16T10:26:37.7630922Z Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB) 2023-03-16T10:26:37.7674906Z Requirement already satisfied: keyring in /usr/lib/python3/dist-packages (from jira~=3.0.0->-r requirements.txt (line 3)) (23.5.0) 2023-03-16T10:26:37.8026458Z Collecting requests-toolbelt 2023-03-16T10:26:37.8131461Z Downloading requests_toolbelt-0.10.1-py2.py3-none-any.whl (54 kB) 2023-03-16T10:26:37.8187643Z ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.5/54.5 KB 13.1 MB/s eta 0:00:00 2023-03-16T10:26:37.8346919Z Requirement already satisfied: oauthlib>=3.0.0 in /usr/lib/python3/dist-packages (from requests-oauthlib>=1.1.0->jira~=3.0.0->-r requirements.txt (line 3)) (3.2.0) 2023-03-16T10:26:37.9342129Z Collecting MarkupSafe>=2.1.1 2023-03-16T10:26:37.9450426Z Downloading MarkupSafe-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB) 2023-03-16T10:26:37.9874427Z Building wheels for collected packages: logging-formatter-anticrlf 2023-03-16T10:26:37.9879884Z Building wheel for logging-formatter-anticrlf (setup.py): started 2023-03-16T10:26:38.2044737Z Building wheel for logging-formatter-anticrlf (setup.py): finished with status 'done' 2023-03-16T10:26:38.2047957Z Created wheel for logging-formatter-anticrlf: filename=logging_formatter_anticrlf-1.2-py3-none-any.whl size=5105 sha256=643cf22029a134fd55ace61c005cd43f124cc59c0bb3241204f906814ee97407 2023-03-16T10:26:38.2049677Z Stored in directory: /home/runner/.cache/pip/wheels/8b/57/c5/b7dd8333ff8f9405eb827286cd3940f75a47baaed7dd003801 2023-03-16T10:26:38.2062844Z Successfully built logging-formatter-anticrlf 2023-03-16T10:26:38.3799993Z Installing collected packages: logging-formatter-anticrlf, MarkupSafe, itsdangerous, defusedxml, charset-normalizer, Werkzeug, requests, requests-toolbelt, requests-oauthlib, flask, jira 2023-03-16T10:26:38.7194270Z Successfully installed MarkupSafe-2.1.2 Werkzeug-2.2.3 charset-normalizer-2.0.12 defusedxml-0.7.1 flask-2.0.3 itsdangerous-2.1.2 jira-3.0.1 logging-formatter-anticrlf-1.2 requests-2.26.0 requests-oauthlib-1.3.1 requests-toolbelt-0.10.1 2023-03-16T10:26:39.2627913Z DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): appdirect.jira.com:443 2023-03-16T10:26:39.6223079Z DEBUG:urllib3.connectionpool:https://appdirect.jira.com:443 "GET /rest/api/2/serverInfo HTTP/1.1" 200 None 2023-03-16T10:26:40.0438017Z DEBUG:urllib3.connectionpool:https://appdirect.jira.com:443 "GET /rest/api/2/field HTTP/1.1" 200 None 2023-03-16T10:26:40.0697326Z INFO:sync:Performing full sync on repository AppDirect/owasp-juiceshop-test... 2023-03-16T10:26:40.0735421Z DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.github.com:443 2023-03-16T10:26:40.5031665Z DEBUG:urllib3.connectionpool:https://api.github.com:443 "GET /repos/AppDirect/owasp-juiceshop-test HTTP/1.1" 200 None 2023-03-16T10:26:40.5065880Z DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.github.com:443 2023-03-16T10:26:40.9135828Z DEBUG:urllib3.connectionpool:https://api.github.com:443 "GET /repos/AppDirect/owasp-juiceshop-test/secret-scanning/alerts?per_page=100 HTTP/1.1" 200 None 2023-03-16T10:26:40.9171209Z DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.github.com:443 2023-03-16T10:26:41.5352953Z DEBUG:urllib3.connectionpool:https://api.github.com:443 "GET /repos/AppDirect/owasp-juiceshop-test/code-scanning/alerts?per_page=100 HTTP/1.1" 200 None 2023-03-16T10:26:42.0376632Z DEBUG:urllib3.connectionpool:https://appdirect.jira.com:443 "GET /rest/api/2/search?jql=project%3D%22CODESEC%22+and+description+~+%22c02e672bb1ea8296dcd630adf74791e115cdd8481718577fe08fc204d3ce9246%22&startAt=0&validateQuery=True HTTP/1.1" 200 None 2023-03-16T10:26:42.0394978Z DEBUG:jiralib:Search project="CODESEC" and description ~ "c02e672bb1ea8296dcd630adf74791e115cdd8481718577fe08fc204d3ce9246" returned 0 results. 2023-03-16T10:26:42.2645338Z DEBUG:urllib3.connectionpool:https://appdirect.jira.com:443 "GET /rest/api/2/project/CODESEC HTTP/1.1" 200 None 2023-03-16T10:26:42.6753250Z DEBUG:urllib3.connectionpool:https://appdirect.jira.com:443 "POST /rest/api/2/issue HTTP/1.1" 400 None 2023-03-16T10:26:42.7298163Z Traceback (most recent call last): 2023-03-16T10:26:42.7299136Z File "/home/runner/work/_actions/github/ghas-jira-integration/v1.2.3/cli.py", line 321, in 2023-03-16T10:26:42.7299692Z main() 2023-03-16T10:26:42.7300167Z File "/home/runner/work/_actions/github/ghas-jira-integration/v1.2.3/cli.py", line 318, in main 2023-03-16T10:26:42.7300553Z args.func(args) 2023-03-16T10:26:42.7301043Z File "/home/runner/work/_actions/github/ghas-jira-integration/v1.2.3/cli.py", line 104, in sync 2023-03-16T10:26:42.7301471Z s.sync_repo(repo_id, states=state) 2023-03-16T10:26:42.7301999Z File "/home/runner/work/_actions/github/ghas-jira-integration/v1.2.3/sync.py", line 134, in sync_repo 2023-03-16T10:26:42.7302437Z new_state = self.sync(alert, issues, d) 2023-03-16T10:26:42.7302966Z File "/home/runner/work/_actions/github/ghas-jira-integration/v1.2.3/sync.py", line 58, in sync 2023-03-16T10:26:42.7303401Z newissue = self.jira.create_issue( 2023-03-16T10:26:42.7304333Z File "/home/runner/work/_actions/github/ghas-jira-integration/v1.2.3/jiralib.py", line 179, in create_issue 2023-03-16T10:26:42.7304745Z raw = self.j.create_issue( 2023-03-16T10:26:42.7305259Z File "/home/runner/.local/lib/python3.10/site-packages/jira/client.py", line 1315, in create_issue 2023-03-16T10:26:42.7305739Z r = self._session.post(url, data=json.dumps(data)) 2023-03-16T10:26:42.7306293Z File "/home/runner/.local/lib/python3.10/site-packages/jira/resilientsession.py", line 175, in post 2023-03-16T10:26:42.7306721Z return self.__verb("POST", url, **kwargs) 2023-03-16T10:26:42.7307248Z File "/home/runner/.local/lib/python3.10/site-packages/jira/resilientsession.py", line 168, in __verb 2023-03-16T10:26:42.7307679Z raise_on_error(response, verb=verb, **kwargs) 2023-03-16T10:26:42.7308224Z File "/home/runner/.local/lib/python3.10/site-packages/jira/resilientsession.py", line 53, in raise_on_error 2023-03-16T10:26:42.7308639Z raise JIRAError( 2023-03-16T10:26:42.7309080Z jira.exceptions.JIRAError: JiraError HTTP 400 url: https://appdirect.jira.com/rest/api/2/issue 2023-03-16T10:26:42.7309525Z text: The issue type selected is invalid. 2023-03-16T10:26:42.7309809Z 2023-03-16T10:26:42.7311970Z response headers = {'Date': 'Thu, 16 Mar 2023 10:26:42 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': '1c60e4a0323c02f1aa5a019a4e4a390e', 'X-Aaccountid': '628dac6ff2261e00682a1d81', 'Cache-Control': 'no-cache, no-store, no-transform', 'Expect-Ct': 'report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/atlassian-proxy", max-age=86400', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': 'bbef14085d9225f9', 'Report-To': '{"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}', 'Nel': '{"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}', 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload', 'Transfer-Encoding': 'chunked'} 2023-03-16T10:26:42.7313712Z response text = {"errorMessages":[],"errors":{"issuetype":"The issue type selected is invalid."}} 2023-03-16T10:26:42.7744147Z ##[error]Process completed with exit code 1.