Skip to content

Commit 0c80cee

Browse files
committed
Add explicit error on Windows
1 parent 2c9cd77 commit 0c80cee

5 files changed

Lines changed: 16 additions & 0 deletions

File tree

lib/analyze-action-post.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action-post.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action-post.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/artifact-scanner.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ async function scanArchiveFile(
156156
);
157157
}
158158

159+
if (process.platform === "win32") {
160+
throw new Error("Scanning archives is not supported on Windows.");
161+
}
162+
159163
const result: ScanResult = {
160164
scannedFiles: 0,
161165
findings: [],

0 commit comments

Comments
 (0)