From a54030f35e9ed5c01e33576de685a4d20a8d015e Mon Sep 17 00:00:00 2001 From: ciaran Date: Mon, 22 Jan 2024 10:21:18 +0000 Subject: [PATCH] no py commons --- build_setup/requirements.txt | 3 +-- src/main_githubaction.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build_setup/requirements.txt b/build_setup/requirements.txt index ff1bdcc..401e05e 100644 --- a/build_setup/requirements.txt +++ b/build_setup/requirements.txt @@ -5,5 +5,4 @@ dacite==1.8.1 tree_sitter==0.20.2 PyGithub==1.59.1 jsonschema==4.19.0 -requests -git+ssh://git@github.com/FireTail-io/python-commons-library.git@v1.0.118 +requests \ No newline at end of file diff --git a/src/main_githubaction.py b/src/main_githubaction.py index ba88954..d565190 100644 --- a/src/main_githubaction.py +++ b/src/main_githubaction.py @@ -5,7 +5,6 @@ import uuid import requests -from firetail_toolbox.ft_logger import logger_wrapper from openapi.validation import parse_resolve_and_validate_openapi_spec from static_analysis import LANGUAGE_ANALYSERS @@ -148,7 +147,7 @@ def has_findings_over_x(ex_id: str, org_uuid: str, api_token: str): endpoint = f"/organisations/{org_uuid}/events/external-id/{ex_id}" event_resp = requests.get(endpoint, headers={"x-ft-api-key": api_token, "Content-Type": "application/json"}) if event_resp.status_code != 200: - logger_wrapper("ERROR", {"message": "Non 200 response from events", "resp": event_resp}) + print("ERROR", {"message": "Non 200 response from events", "resp": event_resp}) thresholds = {"CRITICAL": 1, "HIGH": 1, "MEDIUM": 4, "LOW": 10} # note - skipping informational. findings = event_resp.get("initialFindingSeverities") for level, limit in thresholds.items():