From 250294b8e4ba03be3a643095e6a8eb3ddc50cbeb Mon Sep 17 00:00:00 2001 From: ashwiniag Date: Sat, 12 Oct 2024 21:32:33 +0530 Subject: [PATCH] fix syntax --- .github/actions/gokakashi-scan/index.js | 2 +- .github/actions/gokakashi-scan/package.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/actions/gokakashi-scan/index.js b/.github/actions/gokakashi-scan/index.js index ca5b94d..1fd302e 100644 --- a/.github/actions/gokakashi-scan/index.js +++ b/.github/actions/gokakashi-scan/index.js @@ -1,4 +1,4 @@ -const fetch = require('node-fetch'); // Use CommonJS require for v2.x +const fetch = require('node-fetch'); const { setFailed, getInput, setOutput } = require('@actions/core'); async function run() { diff --git a/.github/actions/gokakashi-scan/package.json b/.github/actions/gokakashi-scan/package.json index 0235a6d..75eb9e3 100644 --- a/.github/actions/gokakashi-scan/package.json +++ b/.github/actions/gokakashi-scan/package.json @@ -3,7 +3,6 @@ "version": "1.0.0", "description": "GitHub Action for scanning images using goKakashi", "main": "index.js", - "type": "module", "dependencies": { "@actions/core": "^1.10.1", "node-fetch": "^2.6.1"