Skip to content

Commit b06053f

Browse files
committed
PHP-1688: Migrating generation to composer sbom package
1 parent 1629779 commit b06053f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/actions/sbom-update/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
working-directory: ${{ inputs.working-directory }}
1515
run: |
1616
echo "Generating SBOM for 'php' project..."
17-
cdxgen -t 'php' --json-pretty --spec-version 1.5 -o ${{ inputs.output-file }} .
17+
./composer CycloneDX:make-sbom --output-file=sbom.json --output-format=json --spec-version=1.5
1818
1919
- name: Validate SBOM
2020
shell: bash

.github/actions/setup-sbom/action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ inputs:
99
runs:
1010
using: composite
1111
steps:
12-
- name: Setup Node.js (for cdxgen)
13-
uses: actions/setup-node@v4
14-
with:
15-
node-version: '20'
12+
- name: Install latest Composer
13+
shell: bash
14+
run: curl -sS https://getcomposer.org/installer | php -- --install-dir=. --filename=composer
1615

1716
- name: Install cdxgen
1817
shell: bash
19-
run: npm install -g @cyclonedx/cdxgen
18+
run: ./composer require --dev cyclonedx/cyclonedx-php-composer --ignore-platform-reqs

0 commit comments

Comments
 (0)