Skip to content

Commit 8ba052a

Browse files
Update GitHub Actions workflows as per security guidelines (#187)
1 parent 914781b commit 8ba052a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ jobs:
3131
repo_path: ./
3232
source_path: ./source
3333
- name: commit SBOM file
34+
env:
35+
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
3436
run: |
3537
git add .
3638
git commit -m 'Update SBOM'
37-
git push -u origin ${{ github.event.inputs.version_number }}
39+
git push -u origin "$VERSION_NUMBER"
3840
- name: Tag Commit and Push to remote
3941
run: |
4042
git tag ${{ github.event.inputs.version_number }} -a -m "coreHTTP Library ${{ github.event.inputs.version_number }}"
@@ -63,8 +65,10 @@ jobs:
6365
cd coreHTTP
6466
git submodule update --init --checkout --recursive
6567
- name: Create ZIP
68+
env:
69+
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
6670
run: |
67-
zip -r coreHTTP-${{ github.event.inputs.version_number }}.zip coreHTTP -x "*.git*"
71+
zip -r coreHTTP-"$VERSION_NUMBER".zip coreHTTP -x "*.git*"
6872
ls ./
6973
- name: Validate created ZIP
7074
run: |
@@ -76,8 +80,10 @@ jobs:
7680
diff -r -x "*.git*" coreHTTP-${{ github.event.inputs.version_number }}/coreHTTP/ ../coreHTTP/
7781
cd ../
7882
- name: Build
83+
env:
84+
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
7985
run: |
80-
cd zip-check/coreHTTP-${{ github.event.inputs.version_number }}/coreHTTP
86+
cd zip-check/coreHTTP-"$VERSION_NUMBER"/coreHTTP
8187
sudo apt-get install -y lcov
8288
cmake -S test -B build/ \
8389
-G "Unix Makefiles" \

0 commit comments

Comments
 (0)