From 54c1fbfd4b4b0899c0288066290c652adbb98e0f Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sat, 31 May 2025 11:21:19 +0100 Subject: [PATCH] fix(ci): fix Snyk docker --- .gitea/workflows/ci.yml | 8 ++++---- app/utils/n8n.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f81c743..70e8133 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -73,8 +73,8 @@ jobs: env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: - command: snyk - args: code test --exclude=.archive + command: code test + args: --all-projects --exclude=.archive - name: Snyk Vulnerability Scan uses: snyk/actions/python@master @@ -82,8 +82,8 @@ jobs: env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: - command: snyk - args: test --all-projects --exclude=.archive + command: test + args: --all-projects --exclude=.archive # - name: Trivy Setup # uses: aquasecurity/setup-trivy@v0.2.0 diff --git a/app/utils/n8n.py b/app/utils/n8n.py index de74d44..42fd030 100644 --- a/app/utils/n8n.py +++ b/app/utils/n8n.py @@ -20,7 +20,7 @@ def __n8n_post(data: dict) -> bool: headers=headers, json=data, timeout=10, - verify=False, + verify=True, ) return bool(resp.status_code == 200) @@ -61,7 +61,7 @@ def get_tasks(requestor) -> bool: url=config.n8n_webhook_url, headers=headers, timeout=10, - verify=False, + verify=True, params={"requestor": requestor}, ) _data = bool(resp.status_code == 200)