This is an automated email from the ASF dual-hosted git repository.

shoothzj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new defeec0e84a [fix][ci] Fix Owasp dependency check: Unexpected symbol: 
branch-2 (#15684)
defeec0e84a is described below

commit defeec0e84a63ea865f3a2790bc61b66a02254c5
Author: Nicolò Boschi <[email protected]>
AuthorDate: Sun May 22 06:22:06 2022 +0200

    [fix][ci] Fix Owasp dependency check: Unexpected symbol: branch-2 (#15684)
    
    ### Motivation
    Owasp regular checks is now failing with this error
    ```
    Invalid workflow file
    The workflow is not valid. .github/workflows/ci-owasp-dependency-check.yaml 
(Line: 69, Col: 13): Unexpected symbol: '"branch-2'. Located at position 16 
within expression: matrix.name != "branch-2.8" && matrix.name != "branch-2.9" 
&& matrix.name != "branch-2.10" 
.github/workflows/ci-owasp-dependency-check.yaml (Line: 76, Col: 13): 
Unexpected symbol: '"branch-2'. Located at position 16 within expression: 
matrix.name == "branch-2.8" || matrix.name == "branch-2.9" || matrix.name == 
"branch-2.10"
    ```
    That is because single quote must be used with strings.
    
    ### Modifications
    
    * Use single quote for strings
    
    - [x] `no-need-doc`
---
 .github/workflows/ci-owasp-dependency-check.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci-owasp-dependency-check.yaml 
b/.github/workflows/ci-owasp-dependency-check.yaml
index 0229714bf41..a9e114c21f9 100644
--- a/.github/workflows/ci-owasp-dependency-check.yaml
+++ b/.github/workflows/ci-owasp-dependency-check.yaml
@@ -66,14 +66,14 @@ jobs:
             ${{ runner.os }}-m2-dependencies-core-modules-
 
       - name: Set up JDK 17
-        if: ${{ matrix.name != "branch-2.8" && matrix.name != "branch-2.9" && 
matrix.name != "branch-2.10" }}
+        if: ${{ matrix.name != 'branch-2.8' && matrix.name != 'branch-2.9' && 
matrix.name != 'branch-2.10' }}
         uses: actions/setup-java@v2
         with:
           distribution: 'temurin'
           java-version: 17
 
       - name: Set up JDK 11
-        if: ${{ matrix.name == "branch-2.8" || matrix.name == "branch-2.9" || 
matrix.name == "branch-2.10" }}
+        if: ${{ matrix.name == 'branch-2.8' || matrix.name == 'branch-2.9' || 
matrix.name == 'branch-2.10' }}
         uses: actions/setup-java@v2
         with:
           distribution: 'temurin'

Reply via email to