Skip to content

Commit

Permalink
Update legacy-release_sbom-generator.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rsh1k authored Aug 15, 2024
1 parent 4a9cde8 commit 9866621
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/legacy-release_sbom-generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ jobs:
- name: Scan Docker Image with Syft
run: |
pipx run anchore_syft dotcms/dotcms:${{ env.DOTCMS_VERSION }} -o cyclonedx-xml > core/cyclonedx.json
pipx run anchore_syft dotcms/dotcms:${{ env.DOTCMS_VERSION }} -o cyclonedx-xml > core/sbom-cyclonedx.json
- name: Rename SBOM file with dotCMS version
run: |
mv core/cyclonedx.json core/dotcms-${{ env.DOTCMS_VERSION }}.json
- name: Fetch all branches and list them
run: |
Expand All @@ -94,7 +91,7 @@ jobs:
- name: Commit and push results to target branch
run: |
cd core
git add dotcms-${{ env.DOTCMS_VERSION }}.json
git add sbom-cyclonedx.json
git commit -m "Add SBOM for dotCMS version ${{ env.DOTCMS_VERSION }}" || echo "No changes to commit"
git push origin ${{ env.BRANCH_NAME }}
env:
Expand Down

0 comments on commit 9866621

Please sign in to comment.