From b67df43d6adc22477d89239012a72c9ebf777838 Mon Sep 17 00:00:00 2001 From: Khanh Du <110228244+khanhduzz@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:25:12 +0700 Subject: [PATCH] fix run ci owasp (#15) --- .github/workflows/customer-ci.yaml | 32 +++++++++++++++--------------- .github/workflows/product-ci.yaml | 32 +++++++++++++++--------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/customer-ci.yaml b/.github/workflows/customer-ci.yaml index 8bf8cbd..7701b78 100644 --- a/.github/workflows/customer-ci.yaml +++ b/.github/workflows/customer-ci.yaml @@ -45,22 +45,6 @@ jobs: - name: Compile project run: mvn clean compile -f customer - - name: OWASP Dependency Check - if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }} - uses: dependency-check/Dependency-Check_Action@main - env: - JAVA_HOME: /opt/jdk - with: - project: 'matcha' - path: '.' - format: 'HTML' - - name: Upload OWASP Dependency Check results - if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }} - uses: actions/upload-artifact@master - with: - name: OWASP Dependency Check Report - path: ${{github.workspace}}/reports - unit-tests: runs-on: ubuntu-latest name: Unit tests @@ -138,6 +122,22 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} continue-on-error: false + - name: OWASP Dependency Check + if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }} + uses: dependency-check/Dependency-Check_Action@main + env: + JAVA_HOME: /opt/jdk + with: + project: 'matcha' + path: '.' + format: 'HTML' + - name: Upload OWASP Dependency Check results + if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }} + uses: actions/upload-artifact@master + with: + name: OWASP Dependency Check Report + path: ${{github.workspace}}/reports + - name: Log in to the Container registry if: ${{ github.ref == 'refs/heads/main' }} uses: docker/login-action@v3 diff --git a/.github/workflows/product-ci.yaml b/.github/workflows/product-ci.yaml index fd03a38..61543d9 100644 --- a/.github/workflows/product-ci.yaml +++ b/.github/workflows/product-ci.yaml @@ -45,22 +45,6 @@ jobs: - name: Compile project run: mvn clean compile -f product - - name: OWASP Dependency Check - if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }} - uses: dependency-check/Dependency-Check_Action@main - env: - JAVA_HOME: /opt/jdk - with: - project: 'matcha' - path: '.' - format: 'HTML' - - name: Upload OWASP Dependency Check results - if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }} - uses: actions/upload-artifact@master - with: - name: OWASP Dependency Check Report - path: ${{github.workspace}}/reports - unit-tests: runs-on: ubuntu-latest name: Unit tests @@ -138,6 +122,22 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} continue-on-error: false + - name: OWASP Dependency Check + if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }} + uses: dependency-check/Dependency-Check_Action@main + env: + JAVA_HOME: /opt/jdk + with: + project: 'matcha' + path: '.' + format: 'HTML' + - name: Upload OWASP Dependency Check results + if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }} + uses: actions/upload-artifact@master + with: + name: OWASP Dependency Check Report + path: ${{github.workspace}}/reports + - name: Log in to the Container registry if: ${{ github.ref == 'refs/heads/main' }} uses: docker/login-action@v3