From 6fc762a92db3265a4641f384bf9151c4b7c67a4a Mon Sep 17 00:00:00 2001 From: strangelookingnerd <49242855+strangelookingnerd@users.noreply.github.com> Date: Wed, 7 Aug 2024 09:26:03 +0200 Subject: [PATCH] Remove hard-coded java-version in Security Scan --- .github/workflows/jenkins-security-scan.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/jenkins-security-scan.yml b/.github/workflows/jenkins-security-scan.yml index 5da3f6d..ba1f447 100644 --- a/.github/workflows/jenkins-security-scan.yml +++ b/.github/workflows/jenkins-security-scan.yml @@ -1,11 +1,12 @@ --- name: Jenkins Security Scan + on: push: branches: - - "main" + - main pull_request: - types: [opened, synchronize, reopened] + types: [ opened, synchronize, reopened ] workflow_dispatch: permissions: @@ -17,5 +18,5 @@ jobs: security-scan: uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2 with: - java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate. - java-version: 17 # What version of Java to set up for the build. + java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate. + # java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default.