corgea-cli 1.8.2__tar.gz → 1.8.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/.github/workflows/release-binaries.yml +7 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/Cargo.lock +1 -1
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/Cargo.toml +1 -1
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/PKG-INFO +1 -1
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/bin/corgea.js +5 -3
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/scripts/npm/bundle-binaries.js +7 -5
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/.github/workflows/npm-publish.yml +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/.github/workflows/release.yml +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/.github/workflows/test.yml +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/.github/workflows/update_docs..yml +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/.gitignore +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/LICENSE +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/README.md +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/build_release.sh +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/package.json +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/pyproject.toml +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/authorize.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/cicd.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/config.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/inspect.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/list.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/log.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/main.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/scan.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/scanners/blast.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/scanners/fortify.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/scanners/parsers/checkmarx.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/scanners/parsers/coverity.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/scanners/parsers/mod.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/scanners/parsers/sarif.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/scanners/parsers/semgrep.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/setup_hooks.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/targets.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/utils/api.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/utils/generic.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/utils/terminal.rs +0 -0
- {corgea_cli-1.8.2 → corgea_cli-1.8.4}/src/wait.rs +0 -0
|
@@ -21,6 +21,9 @@ jobs:
|
|
|
21
21
|
- os: ubuntu-latest
|
|
22
22
|
target: x86_64-unknown-linux-gnu
|
|
23
23
|
binary_name: corgea
|
|
24
|
+
- os: ubuntu-latest
|
|
25
|
+
target: x86_64-unknown-linux-musl
|
|
26
|
+
binary_name: corgea
|
|
24
27
|
- os: ubuntu-24.04-arm
|
|
25
28
|
target: aarch64-unknown-linux-gnu
|
|
26
29
|
binary_name: corgea
|
|
@@ -41,6 +44,10 @@ jobs:
|
|
|
41
44
|
with:
|
|
42
45
|
ref: ${{ inputs.tag || github.ref }}
|
|
43
46
|
|
|
47
|
+
- name: Install musl tools
|
|
48
|
+
if: matrix.target == 'x86_64-unknown-linux-musl'
|
|
49
|
+
run: sudo apt-get install -y musl-tools
|
|
50
|
+
|
|
44
51
|
- name: Install Rust Target
|
|
45
52
|
run: rustup target add ${{ matrix.target }}
|
|
46
53
|
|
|
@@ -9,7 +9,7 @@ function resolveTargetTriple() {
|
|
|
9
9
|
switch (process.platform) {
|
|
10
10
|
case "linux":
|
|
11
11
|
case "android":
|
|
12
|
-
if (process.arch === "x64") return "x86_64-unknown-linux-
|
|
12
|
+
if (process.arch === "x64") return "x86_64-unknown-linux-musl";
|
|
13
13
|
if (process.arch === "arm64") return "aarch64-unknown-linux-gnu";
|
|
14
14
|
return null;
|
|
15
15
|
case "darwin":
|
|
@@ -26,7 +26,9 @@ function resolveTargetTriple() {
|
|
|
26
26
|
|
|
27
27
|
const targetTriple = resolveTargetTriple();
|
|
28
28
|
if (!targetTriple) {
|
|
29
|
-
throw new Error(
|
|
29
|
+
throw new Error(
|
|
30
|
+
`Unsupported platform: ${process.platform} (${process.arch})`,
|
|
31
|
+
);
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
const binaryName = process.platform === "win32" ? "corgea.exe" : "corgea";
|
|
@@ -36,7 +38,7 @@ const binaryPath = path.join(vendorRoot, targetTriple, "corgea", binaryName);
|
|
|
36
38
|
if (!existsSync(binaryPath)) {
|
|
37
39
|
throw new Error(
|
|
38
40
|
`Corgea binary not found at ${binaryPath}.\n` +
|
|
39
|
-
|
|
41
|
+
`Try reinstalling: npm install -g corgea-cli@latest`,
|
|
40
42
|
);
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -6,11 +6,11 @@ const path = require("node:path");
|
|
|
6
6
|
const { unzipSync } = require("fflate");
|
|
7
7
|
|
|
8
8
|
const TARGETS = [
|
|
9
|
-
{ triple: "x86_64-unknown-linux-
|
|
9
|
+
{ triple: "x86_64-unknown-linux-musl", binary: "corgea" },
|
|
10
10
|
{ triple: "aarch64-unknown-linux-gnu", binary: "corgea" },
|
|
11
|
-
{ triple: "x86_64-apple-darwin",
|
|
12
|
-
{ triple: "aarch64-apple-darwin",
|
|
13
|
-
{ triple: "x86_64-pc-windows-msvc",
|
|
11
|
+
{ triple: "x86_64-apple-darwin", binary: "corgea" },
|
|
12
|
+
{ triple: "aarch64-apple-darwin", binary: "corgea" },
|
|
13
|
+
{ triple: "x86_64-pc-windows-msvc", binary: "corgea.exe" },
|
|
14
14
|
];
|
|
15
15
|
|
|
16
16
|
function fail(message) {
|
|
@@ -43,7 +43,9 @@ for (const { triple, binary } of TARGETS) {
|
|
|
43
43
|
const zipBuffer = fs.readFileSync(archivePath);
|
|
44
44
|
const entries = unzipSync(new Uint8Array(zipBuffer));
|
|
45
45
|
|
|
46
|
-
const entry = Object.entries(entries).find(
|
|
46
|
+
const entry = Object.entries(entries).find(
|
|
47
|
+
([name]) => path.basename(name) === binary,
|
|
48
|
+
);
|
|
47
49
|
if (!entry) {
|
|
48
50
|
fail(`binary "${binary}" not found inside ${archiveName}`);
|
|
49
51
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|