Skip to content

Commit

Permalink
Remove hard-coded java-version in Security Scan
Browse files Browse the repository at this point in the history
  • Loading branch information
strangelookingnerd authored Aug 7, 2024
1 parent 080ab25 commit 6fc762a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/jenkins-security-scan.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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.

0 comments on commit 6fc762a

Please sign in to comment.