File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -9,11 +9,10 @@ inputs:
99runs :
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
You can’t perform that action at this time.
0 commit comments