Skip to content

Commit 1ceb859

Browse files
authored
Modify workflow to add to repo
Adding artifact SBOM and committing bom.json to the repository each push.
1 parent 92a1324 commit 1ceb859

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,19 @@ jobs:
1313
input: ./requirements.txt
1414
output: ./bom.json
1515
format: json
16+
17+
- name: Upload SBOM artifact
18+
uses: action/upload-artifact@v2
19+
with:
20+
name: SBOM
21+
path: ./bom.json
22+
23+
- name: Commit SBOM to repo
24+
run: |
25+
git config --local user.email "action@github.com"
26+
git config --local user.name "GitHub Action"
27+
git add bom.json
28+
git commit -m "Adding SBOM"
29+
git push
30+
1631

0 commit comments

Comments
 (0)