mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-12 17:31:15 +00:00
SQSCANGHA-83 Avoid unbound variable error on parameter expansion (#192)
This commit is contained in:
parent
bfe63be746
commit
c8aa051cc4
2 changed files with 7 additions and 4 deletions
7
.github/workflows/qa-main.yml
vendored
7
.github/workflows/qa-main.yml
vendored
|
|
@ -11,12 +11,15 @@ jobs:
|
|||
noInputsTest:
|
||||
name: >
|
||||
No inputs
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ ubuntu-latest, macos-latest ]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Run action with args
|
||||
- name: Run action without args
|
||||
uses: ./
|
||||
env:
|
||||
SONAR_HOST_URL: http://not_actually_used
|
||||
|
|
|
|||
|
|
@ -77,5 +77,5 @@ scanner_args+=("$@")
|
|||
|
||||
set -ux
|
||||
|
||||
$SCANNER_BIN "${scanner_args[@]}"
|
||||
$SCANNER_BIN ${scanner_args[@]+"${scanner_args[@]}"}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue