Skip to content

Commit

Permalink
Update release workflow to include SBOM generation (#75)
Browse files Browse the repository at this point in the history
* Update release workflow to include SBOM generation

* Fix library name in the tag step
  • Loading branch information
AniruddhaKanhere authored Oct 14, 2022
1 parent 2f7ad15 commit 3c636f8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
tag-commit:
name: Tag commit
name: Generate SBOM and tag commit
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -21,7 +21,20 @@ jobs:
ref: ${{ github.event.inputs.commit_id }}
- name: Configure git identity
run: |
git config --global user.name "Release Workflow"
git config --global user.name ${{ github.actor }}
git config --global user.email ${{ github.actor }}@users.noreply.github.com
- name: create a new branch that references commit id
run: git checkout -b ${{ github.event.inputs.version_number }} ${{ github.event.inputs.commit_id }}
- name: Generate SBOM
uses: FreeRTOS/CI-CD-Github-Actions/sbom-generator@main
with:
repo_path: ./
source_path: ./source
- name: commit SBOM file
run: |
git add .
git commit -m 'Update SBOM'
git push -u origin ${{ github.event.inputs.version_number }}
- name: Tag Commit and Push to remote
run: |
git tag ${{ github.event.inputs.version_number }} -a -m "AWS IoT SigV4 ${{ github.event.inputs.version_number }}"
Expand Down

0 comments on commit 3c636f8

Please sign in to comment.