@@ -34,50 +34,45 @@ jobs:
34
34
- name : pnpm install
35
35
run : |
36
36
corepack pnpm install --config.strict-dep-builds=true
37
- python3 -m pip install atom-tools blint
37
+ python3 -m pip install --pre owasp-depscan atom-tools
38
38
- name : check sbom for vulns
39
39
run : |
40
- node bin/cdxgen.js -t js -o reports/sbom-build-js.cdx.json --no-recurse --profile research $(pwd)
41
- node bin/cdxgen.js -t docker -o reports/sbom-container-js.cdx.json ghcr.io/cyclonedx/cdxgen:master
42
- docker rmi ghcr.io/cyclonedx/cdxgen:master
43
- docker run -q --rm -v $(pwd):/app ghcr.io/owasp-dep-scan/dep-scan:master depscan --src /app -- bom-dir /app/ reports --reports-dir /app /reports --reachability-analyzer SemanticReachability --explain
40
+ node bin/cdxgen.js -t js -o $(pwd)/ reports/sbom-build-js.cdx.json --no-recurse --profile research $(pwd)
41
+ docker pull ghcr.io/cyclonedx/cdxgen:master
42
+ node bin/cdxgen.js -t docker -o $(pwd)/reports/sbom-container-js.cdx.json ghcr.io/cyclonedx/cdxgen:master
43
+ depscan --src $(pwd) -- bom-dir $(pwd)/ reports --reports-dir $(pwd) /reports --reachability-analyzer SemanticReachability --explain
44
44
env :
45
45
COLUMNS : 140
46
+ CDXGEN_DEBUG_MODE : debug
46
47
JAVA_TOOL_OPTIONS : " -XX:UseSVE=0 -Dfile.encoding=UTF-8"
47
- build :
48
- runs-on : ubuntu-24.04
48
+ matrix-unit-test :
49
49
permissions :
50
50
contents : read
51
51
strategy :
52
+ fail-fast : false
52
53
matrix :
53
54
node-version : ['20.x', '21.x', '22.x', '23.x', '24.x']
54
-
55
+ os : ['ubuntu-22.04', 'ubuntu-24.04', 'windows-latest', 'windows-11-arm', 'ubuntu-22.04-arm', 'ubuntu-24.04-arm', 'macos-latest', 'macos-13']
56
+ runs-on : ${{ matrix.os }}
55
57
steps :
56
58
- uses : actions/checkout@v4
57
59
- name : Use Node.js ${{ matrix.node-version }}
58
60
uses : actions/setup-node@v4
59
61
with :
60
62
node-version : ${{ matrix.node-version }}
61
- - name : Set up Python
62
- uses : actions/setup-python@v5
63
- with :
64
- python-version : 3.12
65
- - name : Set up JDK
66
- uses : actions/setup-java@v4
67
- with :
68
- distribution : ' temurin'
69
- java-version : ' 23'
70
63
- name : pnpm install, build and test
71
64
run : |
72
- npm install --global corepack@latest
73
- corepack enable pnpm
74
- corepack pnpm install --config.strict-dep-builds=true
75
- corepack pnpm test
76
- NPM_CONFIG_PROVENANCE=true corepack pnpm publish --access=public --dry-run --no-git-checks
65
+ npm install -g pnpm@latest
66
+ pnpm install --config.strict-dep-builds=true
67
+ pnpm test
68
+ pnpm publish --access=public --dry-run --no-git-checks
77
69
env :
78
70
CI : true
71
+ NPM_CONFIG_PROVENANCE : true
72
+
79
73
deno-build :
80
74
strategy :
75
+ fail-fast : true
81
76
matrix :
82
77
os : [windows, macos, ubuntu]
83
78
deno_version : [2.x]
@@ -87,23 +82,24 @@ jobs:
87
82
deno compile --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,osRelease,homedir --allow-write --allow-net --include=./data --include=./package.json --output cdxgenx.exe bin/cdxgen.js
88
83
.\cdxgenx.exe --help
89
84
(Get-FileHash .\cdxgenx.exe).hash | Out-File -FilePath .\cdxgenx.exe.sha256
90
- deno compile --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,osRelease,homedir --allow-write --allow-net --include=./data --include=./package.json --output evinse.exe bin/evinse.js
85
+ deno compile --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,osRelease,homedir --allow-write --allow-net --node-modules-dir=auto --allow-ffi --allow-scripts=npm:[email protected] -- include=./data --include=./package.json --include=node_modules/.deno/[email protected] /node_modules/sqlite3/build/Release --output evinse.exe bin/evinse.js
91
86
.\evinse.exe --help
92
87
(Get-FileHash .\evinse.exe).hash | Out-File -FilePath .\evinse.exe.sha256
93
88
artifact : cdxgenx.exe
94
89
- os : macos
95
90
build : |
91
+ rm -rf node_modules
96
92
deno compile --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,homedir --allow-write --allow-net --include=./data --include=./package.json --target x86_64-apple-darwin --output cdxgenx-darwin-amd64 bin/cdxgen.js
97
93
./cdxgenx-darwin-amd64 --help
98
94
shasum -a 256 cdxgenx-darwin-amd64 > cdxgenx-darwin-amd64.sha256
95
+ rm -rf node_modules
99
96
deno compile --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,homedir --allow-write --allow-net --include=./data --include=./package.json --target aarch64-apple-darwin --output cdxgenx-darwin-arm64 bin/cdxgen.js
100
97
shasum -a 256 cdxgenx-darwin-arm64 > cdxgenx-darwin-arm64.sha256
101
- deno compile --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,homedir --allow-write --allow-net --include=./data --include=./package.json --target x86_64-apple-darwin --output evinse-darwin-amd64 bin/evinse.js
102
- ./evinse-darwin-amd64 --help
103
- shasum -a 256 evinse-darwin-amd64 > evinse-darwin-amd64.sha256
104
- deno compile --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,homedir --allow-write --allow-net --include=./data --include=./package.json --target aarch64-apple-darwin --output evinse-darwin-arm64 bin/evinse.js
98
+ rm -rf node_modules
99
+ deno compile --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,homedir --allow-write --allow-net --node-modules-dir=auto --allow-ffi --allow-scripts=npm:[email protected] --include=./data --include=./package.json --include=node_modules/.deno/[email protected] /node_modules/sqlite3/build/Release --target aarch64-apple-darwin --output evinse-darwin-arm64 bin/evinse.js
105
100
shasum -a 256 evinse-darwin-arm64 > evinse-darwin-arm64.sha256
106
- artifact : cdxgenx-darwin-amd64
101
+ ./evinse-darwin-arm64 --help
102
+ artifact : cdxgenx-darwin-arm64
107
103
- os : ubuntu
108
104
build : |
109
105
deno compile --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,homedir --allow-write --allow-net --include=./data --include=./package.json --output cdxgenx bin/cdxgen.js
0 commit comments