Skip to content

Commit c8aa051

Browse files
SQSCANGHA-83 Avoid unbound variable error on parameter expansion (#192)
1 parent bfe63be commit c8aa051

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/qa-main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ jobs:
1111
noInputsTest:
1212
name: >
1313
No inputs
14-
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
os: [ ubuntu-latest, macos-latest ]
17+
runs-on: ${{ matrix.os }}
1518
steps:
1619
- uses: actions/checkout@v4
1720
with:
1821
token: ${{ secrets.GITHUB_TOKEN }}
19-
- name: Run action with args
22+
- name: Run action without args
2023
uses: ./
2124
env:
2225
SONAR_HOST_URL: http://not_actually_used
@@ -831,4 +834,4 @@ jobs:
831834
if: steps.invalid_version.outcome == 'success'
832835
run: |
833836
echo "Action with invalid scannerVersion should have failed but succeeded"
834-
exit 1
837+
exit 1

scripts/run-sonar-scanner-cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ scanner_args+=("$@")
7777

7878
set -ux
7979

80-
$SCANNER_BIN "${scanner_args[@]}"
80+
$SCANNER_BIN ${scanner_args[@]+"${scanner_args[@]}"}
8181

0 commit comments

Comments
 (0)