File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 4545 tag-commit :
4646 if : ${{ ( github.event.inputs.delete_existing_tag_release == 'true' && success() ) || ( github.event.inputs.delete_existing_tag_release == 'false' && always() ) }}
4747 needs : clean-existing-tag-and-release
48- name : Tag commit
48+ name : Generate SBOM and tag commit
4949 runs-on : ubuntu-latest
5050 steps :
5151 - name : Checkout code
5454 ref : ${{ github.event.inputs.commit_id }}
5555 - name : Configure git identity
5656 run : |
57- git config --global user.name "Release Workflow"
57+ git config --global user.name ${{ github.actor }}
58+ git config --global user.email ${{ github.actor }}@users.noreply.github.com
59+ - name : create a new branch that references commit id
60+ run : git checkout -b ${{ github.event.inputs.version_number }} ${{ github.event.inputs.commit_id }}
61+ - name : Generate SBOM
62+ uses : FreeRTOS/CI-CD-Github-Actions/sbom-generator@main
63+ with :
64+ repo_path : ./
65+ source_path : ./source
66+ - name : commit SBOM file
67+ run : |
68+ git add .
69+ git commit -m 'Update SBOM'
70+ git push -u origin ${{ github.event.inputs.version_number }}
5871 - name : Tag Commit and Push to remote
5972 run : |
6073 git tag ${{ github.event.inputs.version_number }} -a -m "coreSNTP Library ${{ github.event.inputs.version_number }}"
You can’t perform that action at this time.
0 commit comments