From 1ceb85998d93410104bf15824214c1eefcc7848e Mon Sep 17 00:00:00 2001 From: Neal Ensor Date: Wed, 22 May 2024 15:59:20 -0400 Subject: [PATCH] Modify workflow to add to repo Adding artifact SBOM and committing bom.json to the repository each push. --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eaa349a..f7c0110 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 +