Skip to content

Commit

Permalink
Update SBOM.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Deekshitha-kumbla authored Sep 10, 2024
1 parent c069eea commit d75fb8d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/SBOM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ jobs:
- name: Generate SBOM
run: syft dir:. -o spdx-json > sbom.json

- name: Commit SBOM
- name: Commit SBOM to main
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git checkout -b main
git add sbom.json
git commit -m 'Add SBOM'
git push origin sbom-updates --force
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d75fb8d

Please sign in to comment.