From 689a84a63a5f9e0f139f8303482e9390a648e30f Mon Sep 17 00:00:00 2001 From: Nipuna Ranasinghe Date: Mon, 25 Sep 2023 17:55:17 +0530 Subject: [PATCH] Exclude examples build in trivy scans --- .github/workflows/dev-stg-release.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev-stg-release.yml b/.github/workflows/dev-stg-release.yml index c9e009a4..5d0bc9bc 100644 --- a/.github/workflows/dev-stg-release.yml +++ b/.github/workflows/dev-stg-release.yml @@ -44,7 +44,7 @@ jobs: packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true run: | - ./gradlew build -x test + ./gradlew build -x test -x :azure-service-bus-examples:build # Perform Trivy scan - name: Run Trivy vulnerability scanner diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a77a3f40..4c563d35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true run: | - ./gradlew build -x test + ./gradlew build -x test -x :azure-service-bus-examples:build # Perform Trivy scan - name: Run Trivy vulnerability scanner