gitleaks / gitleaks-action

Protect your secrets using Gitleaks-Action
https://gitleaks.io
Other
330 stars 129 forks source link

Last version crashing (2.3.5) #155

Closed luca-regne closed 5 months ago

luca-regne commented 5 months ago

Hi, the last release (@2.3.5) seems broken....

I have just tried some executions on different repositories and detected the same following problem in all of them:

/home/runner/work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:128395
  const artifactClient = artifact.create();
                                  ^

TypeError: artifact.create is not a function
    at Scan (/home/runner/work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:128395:35)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.ScanPullRequest (/home/runner/work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:128443:20)
    at async start (/home/runner/work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:139600:16)
quagliato commented 5 months ago

Hey, @luca-regne! :)

Seems that your issue is the same as here: https://github.com/gitleaks/gitleaks-action/issues/154

zricethezav commented 5 months ago

Should be fixed now, sorry for the breakage >.<