Skip to content

Commit b17b1c2

Browse files
reeshika-hclaude
andcommitted
fix: set up JDK 17 in SCA scan workflow
The Snyk Gradle scan job was failing with "Unsupported class file major version 69" because no JDK was configured, so Gradle fell back to whatever Java the runner defaults to. Explicitly set up JDK 17 to match the project's sourceCompatibility and the JDK used in publish-release.yml. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 5ebe59d commit b17b1c2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/sca-scan.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010
pull-requests: write
1111
steps:
1212
- uses: actions/checkout@master
13+
- name: Set up JDK 17
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: '17'
17+
distribution: 'adopt'
1318
- name: Run Snyk to check for vulnerabilities
1419
uses: snyk/actions/gradle@master
1520
env:

0 commit comments

Comments
 (0)