@@ -76,14 +76,14 @@ jobs:
76
76
arch : arm64
77
77
runner : windows-11-arm
78
78
# Set musl configurations
79
- - image : debian:11
79
+ - image : php:8.4-bookworm
80
80
libc-suffix : ' '
81
81
node-download-url : https://nodejs.org/dist/
82
82
prepare : |
83
83
apt update
84
84
apt install -y curl
85
85
- libc : musl
86
- image : alpine:3.16
86
+ image : php:8.4-alpine3.21
87
87
libc-suffix : -musl
88
88
node-download-url : https://raw.githubusercontent.com/appthreat/nodejs-unofficial-builds/main/dists/
89
89
prepare : |
95
95
pnpm install:prod --config.node-linker=hoisted
96
96
97
97
# Generate sbom
98
- node bin/cdxgen.js -t jar -t js -o sbom-postbuild.cdx.json --include-formulation
98
+ node bin/cdxgen.js -t jar -t js -t php -t ruby - o sbom-postbuild.cdx.json --include-formulation
99
99
100
100
# Produce cdxgen binary
101
101
pnpm --package=@appthreat/caxa dlx caxa --input . --output cdxgen -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/bin/cdxgen.js"
@@ -129,7 +129,7 @@ jobs:
129
129
pnpm install:prod --config.node-linker=hoisted
130
130
131
131
# Generate sbom
132
- node bin/cdxgen.js -t jar -t js -o sbom-postbuild.cdx.json --include-formulation
132
+ node bin/cdxgen.js -t jar -t js -t php -t ruby - o sbom-postbuild.cdx.json --include-formulation
133
133
134
134
# Produce cdxgen binary
135
135
pnpm --package=@appthreat/caxa dlx caxa --input . --output cdxgen.exe -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/bin/cdxgen.js"
@@ -168,6 +168,9 @@ jobs:
168
168
uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
169
169
with :
170
170
node-version : ${{ matrix.node }}
171
+ - name : Install composer
172
+ uses : shivammathur/setup-php@v2
173
+ if : ${{ matrix.os == 'darwin' }}
171
174
- name : Get user info
172
175
id : user_info
173
176
if : ${{ matrix.os == 'linux' }}
@@ -199,6 +202,9 @@ jobs:
199
202
# Install pnpm
200
203
npm install --global pnpm
201
204
205
+ # Install composer
206
+ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
207
+
202
208
# Build
203
209
${{ matrix.cmd }}
204
210
0 commit comments