build(ci): run the dependency review only once
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 7 Sep 2023 12:50:24 +0000 (14:50 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 7 Sep 2023 12:50:24 +0000 (14:50 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml

index 736af2eb8d3954fb81851bc2f00d1558657b5232..e877947347ae1d0f28c7ed232d051b58ba42ce0c 100644 (file)
@@ -19,6 +19,7 @@ jobs:
         with:
           fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
       - name: 'Dependency Review'
+        if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
         uses: actions/dependency-review-action@v3
       - uses: pnpm/action-setup@v2
         with:
@@ -61,6 +62,7 @@ jobs:
         with:
           fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
       - name: 'Dependency Review'
+        if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
         uses: actions/dependency-review-action@v3
       - uses: pnpm/action-setup@v2
         with: