@@ -27,15 +27,13 @@ jobs:
2727
2828 steps :
2929 - name : Checkout repository
30- uses : actions/checkout@v4
30+ uses : actions/checkout@v6
3131 with :
3232 persist-credentials : false
33-
3433 - name : Set up Python
35- uses : actions/setup-python@v5
34+ uses : actions/setup-python@v6
3635 with :
3736 python-version : " 3.10"
38-
3937 - name : Generate SBOM
4038 run : |
4139 python -m venv .venv
@@ -50,34 +48,29 @@ jobs:
5048 cyclonedx-py environment --spec-version 1.5 --output-format JSON --output-file sbom.json .venv
5149 # Add PURL for django-mongodb-backend (local package doesn't get PURL automatically)
5250 jq '(.components[] | select(.name == "django-mongodb-backend" and .purl == null)) |= (. + {purl: ("pkg:pypi/django-mongodb-backend@" + .version)})' sbom.json > sbom.tmp.json && mv sbom.tmp.json sbom.json
53-
5451 - name : Download CycloneDX CLI
5552 run : |
5653 curl -L -s -o /tmp/cyclonedx "https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.29.1/cyclonedx-linux-x64"
5754 chmod +x /tmp/cyclonedx
58-
5955 - name : Validate SBOM
6056 run : /tmp/cyclonedx validate --input-file sbom.json --fail-on-errors
61-
6257 - name : Cleanup
6358 if : always()
6459 run : rm -rf .venv .venv-sbom
65-
6660 - name : Upload SBOM artifact
67- uses : actions/upload-artifact@v4
61+ uses : actions/upload-artifact@v5
6862 with :
6963 name : sbom
7064 path : sbom.json
7165 if-no-files-found : error
72-
7366 - name : Create Pull Request
74- uses : peter-evans/create-pull-request@b4733b9419fd47bbfa1807b15627e17cd70b5b22
67+ uses : peter-evans/create-pull-request@v7
7568 with :
7669 token : ${{ secrets.GITHUB_TOKEN }}
77- commit-message : ' chore: Update SBOM after dependency changes'
70+ commit-message : ' Update SBOM after dependency changes'
7871 branch : auto-update-sbom-${{ github.run_id }}
7972 delete-branch : true
80- title : ' chore: Update SBOM'
73+ title : ' Update SBOM'
8174 body : |
8275 ## Automated SBOM Update
8376
8780 - Updated `sbom.json` to reflect current dependencies
8881
8982 ### Verification
90- The SBOM was generated using cyclonedx-py v7.2.1 with the current Python environment.
83+ The SBOM was generated using cyclonedx-py with the current Python environment.
9184
9285 ### Triggered by
9386 - Commit: ${{ github.sha }}
0 commit comments