From bdf8d115a4ecbf4d2e5ad39ab8954317477a7f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=B6derberg?= Date: Wed, 12 Jun 2024 13:43:26 +0200 Subject: [PATCH] feat: remove discover on sync --- src/main.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main.ts b/src/main.ts index 6cdd4b9..7bc73c9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,5 @@ import * as core from '@actions/core' import axios from 'axios' -import { createHmac } from 'crypto' /** * The main function for the action. @@ -39,20 +38,10 @@ export async function syncState( novuApiKey: string, backendUrl: string ): Promise { - const timestamp = Date.now() - const discover = await axios.get(`${echoUrl}?action=discover`, { - headers: { - 'x-novu-signature': `t=${timestamp},v1=${createHmac('sha256', novuApiKey) - .update(`${timestamp}.${JSON.stringify({})}`) - .digest('hex')}` - } - }) - const sync = await axios.post( `${backendUrl}/v1/echo/sync?source=githubAction`, { chimeraUrl: echoUrl, - workflows: discover.data.workflows }, { headers: {