We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d5bcd1 commit 3266321Copy full SHA for 3266321
src/scanners/diffScan.js
@@ -14,6 +14,10 @@ async function scanDiff({
14
15
const commitSha = process.env.GITHUB_SHA;
16
17
+ if (!commitSha) {
18
+ throw new Error('No GitHub commit SHA found, exiting with error');
19
+ }
20
+
21
const git = simpleGit(repoPath);
22
23
const diffResult = await git.diff([`${commitSha}^..${commitSha}`, '--name-status', '-M']);
0 commit comments