v0.0.4 RC #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate SBOM | ||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
jobs: | ||
generate-sbom: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git | ||
run: | | ||
git config --global user.email "developer-tools@finitestate.io" | ||
git config --global user.name "Finite State Developers" | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.10.12 # Use the desired Python version | ||
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
- name: Generate SBOM | ||
run: | | ||
# Run the 'cyclonedx-py' command to generate the SBOM in JSON format | ||
cyclonedx-py -r --format json -o sbom/finite-state-sdk-cyclonedx.sbom.json | ||
- name: Commit SBOM and Push Changes | ||
run: | | ||
Check failure on line 32 in .github/workflows/sbom.yaml
|
||
git add sbom/finite-state-sdk-cyclonedx.sbom.json | ||
git commit -m "Add SBOM JSON file" | ||
git push origin HEAD:${{ github.head_ref } |