-
Notifications
You must be signed in to change notification settings - Fork 448
Closed
Labels
CodeQL ActionThis repo! Helps for internal planningThis repo! Helps for internal planningbugSomething isn't workingSomething isn't working
Description
I have a workflow which has to check out the repo to a specific (non-default) directory.
The upload-sarif action produces this error:
fatal: not a git repository (or any of the parent directories): .git
Failed to call git to get current commit. Continuing with data from environment or input: Error: The process '/usr/bin/git' failed with exit code 128
Error: The process '/usr/bin/git' failed with exit code 128
at ExecState._setResult (/home/runner/work/_actions/github/codeql-action/v2/node_modules/@actions/exec/lib/toolrunner.js:592:25)
at ExecState.CheckComplete (/home/runner/work/_actions/github/codeql-action/v2/node_modules/@actions/exec/lib/toolrunner.js:575:18)
at ChildProcess.<anonymous> (/home/runner/work/_actions/github/codeql-action/v2/node_modules/@actions/exec/lib/toolrunner.js:469:27)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Socket.<anonymous> (node:internal/child_process:450:11)
at Socket.emit (node:events:390:[28](https://github.com/argoproj/argo-cd/runs/7634411066?check_suite_focus=true#step:5:29))
at Pipe.<anonymous> (node:net:687:12)
I believe the action expects the working directory to be a git repo.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CodeQL ActionThis repo! Helps for internal planningThis repo! Helps for internal planningbugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.