Skip to content

Commit

Permalink
Modify workflow to add to repo
Browse files Browse the repository at this point in the history
Adding artifact SBOM and committing bom.json to the repository each push.
  • Loading branch information
nensor committed May 22, 2024
1 parent 92a1324 commit 1ceb859
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,19 @@ jobs:
input: ./requirements.txt
output: ./bom.json
format: json

- name: Upload SBOM artifact
uses: action/upload-artifact@v2
with:
name: SBOM
path: ./bom.json

- name: Commit SBOM to repo
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add bom.json
git commit -m "Adding SBOM"
git push

0 comments on commit 1ceb859

Please sign in to comment.