Skip to content

Commit

Permalink
snyk fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
reeshika-h committed Dec 11, 2024
1 parent 57f97bd commit c43fc86
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name: "CodeQL"
on:
pull_request:
# The branches below must be a subset of the branches above
branches: '*'
branches: [master]

jobs:
analyze:
Expand Down Expand Up @@ -54,6 +54,19 @@ jobs:
# - name: Autobuild
# uses: github/codeql-action/autobuild@v2

# Custom build steps for Java
- name: Set up JDK 17
if: matrix.language == 'java'
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin' # You can use 'zulu' or another distribution if needed

- name: Build with Maven
if: matrix.language == 'java'
run: mvn -B package --file pom.xml


# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: 17
distribution: 'temurin' # You can change this to 'zulu' or other distributions if needed
- name: Build with Maven
run: mvn -B package --file pom.xml
4 changes: 2 additions & 2 deletions .github/workflows/sca-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
uses: snyk/actions/maven@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --all-projects --fail-on=all
args: --fail-on=all
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</parent>

<properties>
<java.version>1.8</java.version>
<java.version>17</java.version>
<spring-boot.version>3.1.4</spring-boot.version>
<json-smart.version>5.2.2</json-smart.version>
<contentstack.version>1.12.2</contentstack.version>
Expand All @@ -25,22 +25,18 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>com.contentstack.sdk</groupId>
Expand All @@ -60,7 +56,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>3.1.4</version>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit c43fc86

Please sign in to comment.