Skip to content

Test sbom.

Test sbom. #3

Workflow file for this run

name: Generate SBOM
on:
pull_request:
types: [ opened, synchronize, reopened ]
workflow_dispatch:
jobs:
sbom:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer dependencies
run: composer install --no-progress --no-suggest --prefer-dist --no-interaction
- name: Install SPOM
run: composer global require cyclonedx/cyclonedx-php-composer
- name: CREATE SBOM
run: CycloneDX:make-sbom --output-file=sbom.json --output-format=json
- name: Upload SBOM as an artifact
uses: actions/upload-artifact@v3
with:
name: sbom
path: sbom.json