From 8b16ccd229393bf4b1cae726468a9d5a6863367d Mon Sep 17 00:00:00 2001 From: Robert Haimerl Date: Wed, 20 Dec 2023 11:12:28 +0100 Subject: [PATCH] Add FindSecBugs Action --- .github/workflows/findsecbugs.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/findsecbugs.yml diff --git a/.github/workflows/findsecbugs.yml b/.github/workflows/findsecbugs.yml new file mode 100644 index 000000000..62e4cdb91 --- /dev/null +++ b/.github/workflows/findsecbugs.yml @@ -0,0 +1,35 @@ +name: "FindSecBugs" + +on: + push: + branches: + - rh/action-test + #- main + #pull_request: + #branches: + #- '**' + workflow_dispatch: + +jobs: + build-and-scan: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: 17 + - name: Build + uses: gradle/gradle-build-action@v2 + with: + arguments: :codyze-cli:build -x check --parallel -Pversion=0.0.0 + - name: Run FindSecBugs + uses: advanced-security/spotbugs-findsecbugs-action@v1 + with: + spotbugs_target: "build/" + java_distribution: "temurin" + java_version: "17" \ No newline at end of file