Skip to content

Commit 7035d41

Browse files
committed
prevent cmd injection and pin sigstore version
1 parent 145e184 commit 7035d41

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/release-gate.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
fi
4949
5050
- name: Validate version is strictly increasing
51+
env:
52+
NEW_VERSION: ${{ steps.version.outputs.new }}
5153
run: |
52-
NEW_VERSION="${{ steps.version.outputs.new }}"
53-
5454
# Get the latest tag; if none exist yet, skip the comparison
5555
LATEST_TAG=$(git tag --list 'v*' --sort=-version:refname | head -n1)
5656
if [ -z "$LATEST_TAG" ]; then
@@ -87,8 +87,9 @@ jobs:
8787
git config user.email "commit-boost-release-bot[bot]@users.noreply.github.com"
8888
8989
- name: Create and push tag
90+
env:
91+
VERSION: ${{ steps.version.outputs.new }}
9092
run: |
91-
VERSION="${{ steps.version.outputs.new }}"
9293
git tag "$VERSION" HEAD
9394
git push origin "$VERSION"
9495
# Branch fast-forwarding happens in release.yml after all artifacts

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
pattern: "commit-boost*"
169169

170170
- name: Sign binaries
171-
uses: sigstore/gh-action-sigstore-python@v3.2.0
171+
uses: sigstore/gh-action-sigstore-python@a5caf349bc536fbef3668a10ed7f5cd309a4b53d #v3.2.0
172172
with:
173173
inputs: ./artifacts/**/*.tar.gz
174174

@@ -391,4 +391,4 @@ jobs:
391391
token: ${{ steps.app-token.outputs.token }}
392392

393393
- name: Delete tag
394-
run: git push origin --delete ${{ github.ref_name }}
394+
run: git push origin --delete ${{ github.ref_name }}

0 commit comments

Comments
 (0)