Skip to content

Commit 524931e

Browse files
Update PR body content
1 parent 0d874e6 commit 524931e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/generate_sbom.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,19 @@ jobs:
6363
enable-cache: true
6464

6565
- name: Install dependencies
66-
run: |
67-
uv sync --group generate_sbom
66+
run: uv sync --group generate_sbom
6867

6968
- name: generate_sbom.py
7069
run: uv run etc/sbom/generate_sbom.py --enable-github-action-token --target=branch --sbom-metadata=etc/sbom/metadata.cdx.json --save-warnings=${{runner.temp}}/warnings.txt
7170

71+
- name: Generate Pull Request Content
72+
run: printf "SBOM updated after commit ${{ github.sha }}.\n\nThe following warnings were output when generating the SBOM:\n" | cat - ${{runner.temp}}/warnings.txt > ${{runner.temp}}/pr_body.txt
73+
7274
- name: Open Pull Request
7375
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
7476
with:
7577
add-paths: sbom.json
76-
body-path: ${{runner.temp}}/warnings.txt
78+
body-path: ${{runner.temp}}/pr_body.txt
7779
branch: cxx-sbom-update
7880
commit-message: Update SBOM file(s)
7981
delete-branch: true

0 commit comments

Comments
 (0)