SQSCANGHA-83 Avoid unbound variable error on parameter expansion (#192)
This commit is contained in:
committed by
GitHub
parent
bfe63be746
commit
c8aa051cc4
9
.github/workflows/qa-main.yml
vendored
9
.github/workflows/qa-main.yml
vendored
@@ -11,12 +11,15 @@ jobs:
|
|||||||
noInputsTest:
|
noInputsTest:
|
||||||
name: >
|
name: >
|
||||||
No inputs
|
No inputs
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubuntu-latest, macos-latest ]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Run action with args
|
- name: Run action without args
|
||||||
uses: ./
|
uses: ./
|
||||||
env:
|
env:
|
||||||
SONAR_HOST_URL: http://not_actually_used
|
SONAR_HOST_URL: http://not_actually_used
|
||||||
@@ -831,4 +834,4 @@ jobs:
|
|||||||
if: steps.invalid_version.outcome == 'success'
|
if: steps.invalid_version.outcome == 'success'
|
||||||
run: |
|
run: |
|
||||||
echo "Action with invalid scannerVersion should have failed but succeeded"
|
echo "Action with invalid scannerVersion should have failed but succeeded"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -77,5 +77,5 @@ scanner_args+=("$@")
|
|||||||
|
|
||||||
set -ux
|
set -ux
|
||||||
|
|
||||||
$SCANNER_BIN "${scanner_args[@]}"
|
$SCANNER_BIN ${scanner_args[@]+"${scanner_args[@]}"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user