Skip to content

Commit ebf0b5c

Browse files
committed
Fix some low security issues found by zizmor
Signed-off-by: Jason Frey <[email protected]>
1 parent 11251c9 commit ebf0b5c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616
- name: Update major version branch
17+
env:
18+
RELEASE_TAG: ${{ github.event.release.tag_name }}
1719
run: |
18-
tag=${{ github.event.release.tag_name }}
19-
branch=${tag%%.*}
20+
branch=${RELEASE_TAG%%.*}
2021
git push origin HEAD:$branch

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ jobs:
2929
id: ibmcloud
3030
uses: ./
3131
- name: Check version output is set correctly
32+
env:
33+
IBMCLOUD_CLI_VERSION: ${{ steps.ibmcloud.outputs.version }}
3234
run: |
3335
actual_version="$(ibmcloud --version)"
34-
expected_version="ibmcloud ${{ steps.ibmcloud.outputs.version }}"
36+
expected_version="ibmcloud $IBMCLOUD_CLI_VERSION ("
3537
echo "Actual version: $actual_version"
3638
echo "Expected version: $expected_version*"
3739
[[ "$actual_version" == "$expected_version"* ]]
@@ -313,7 +315,7 @@ jobs:
313315
uses: actions/setup-node@v6
314316
with:
315317
node-version: 24
316-
cache: npm
318+
package-manager-cache: false
317319
- run: npm ci
318320
- run: npm run package
319321
- name: Check dist directory is up to date

0 commit comments

Comments
 (0)