Skip to content

Commit

Permalink
Follow security guidelines with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-josi-aws committed Nov 13, 2024
1 parent f11b521 commit 32cb580
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ jobs:
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 }}
env:
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
COMMIT_ID: ${{ github.event.inputs.commit_id }}
run: git checkout -b "$VERSION_NUMBER" "$COMMIT_ID"
- name: Tag Commit and Push to remote
env:
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
run: |
git tag ${{ github.event.inputs.version_number }} -a -m "Release ${{ github.event.inputs.version_number }}"
git tag "$VERSION_NUMBER" -a -m "Release "$VERSION_NUMBER""
git push origin --tags
- name: Verify tag on remote
env:
Expand Down

0 comments on commit 32cb580

Please sign in to comment.