Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies to support java 21 #70

Merged
merged 3 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,108 +8,108 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Get identifier
run: echo "IDENTIFIER=${GITHUB_REF##*/}" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
file: java/maven/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/debricked/vulnerable-functionality-maven:${{ env.IDENTIFIER }}
debricked/vulnerable-functionality-maven:${{ env.IDENTIFIER }}
ghcr.io/debricked/soot-wrapper-maven:${{ env.IDENTIFIER }}
debricked/soot-wrapper-maven:${{ env.IDENTIFIER }}

docker-gradle:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Get identifier
run: echo "IDENTIFIER=${GITHUB_REF##*/}" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
file: java/gradle/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/debricked/vulnerable-functionality-gradle:${{ env.IDENTIFIER }}
debricked/vulnerable-functionality-gradle:${{ env.IDENTIFIER }}
ghcr.io/debricked/soot-wrapper-gradle:${{ env.IDENTIFIER }}
debricked/soot-wrapper-gradle:${{ env.IDENTIFIER }}

docker-java:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Get identifier
run: echo "IDENTIFIER=${GITHUB_REF##*/}" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
file: java/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/debricked/vulnerable-functionality-java:${{ env.IDENTIFIER }}
debricked/vulnerable-functionality-java:${{ env.IDENTIFIER }}
ghcr.io/debricked/soot-wrapper-java:${{ env.IDENTIFIER }}
debricked/soot-wrapper-java:${{ env.IDENTIFIER }}
2 changes: 1 addition & 1 deletion .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
working-directory: java

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/vulnfunc_generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '11'
java-version: '21'
distribution: 'temurin'
- run: mvn -B -f java/common package dependency:copy-dependencies -DoutputDirectory=dependencies -DskipTests
- uses: debricked/vulnerable-functionality/java@master
- uses: ./java
with:
path-to-compiled-files: 'java/common/target/classes/'
path-to-library-files: 'java/common/dependencies'
4 changes: 2 additions & 2 deletions .github/workflows/vulnfunc_maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: debricked/vulnerable-functionality/java/maven@master
- uses: actions/checkout@v4
- uses: ./java/maven
with:
root-pom-directory: 'java/common'
2 changes: 1 addition & 1 deletion java/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
required: true
runs:
using: docker
image: docker://debricked/vulnerable-functionality-java:master
image: docker://debricked/soot-wrapper-java:master
entrypoint: /vulnfunc/java/github-action.sh
args:
- ${{ inputs.path-to-compiled-files }}
Expand Down
4 changes: 2 additions & 2 deletions java/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>soot</artifactId>
<version>4.4.1</version>
<version>4.6.0</version>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
Expand All @@ -33,7 +33,7 @@
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20211205</version>
<version>20220320</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion java/gradle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
default: '.'
runs:
using: docker
image: docker://debricked/vulnerable-functionality-gradle:master
image: docker://debricked/soot-wrapper-gradle:master
entrypoint: /vulnfunc/java/gradle/github-action.sh
args:
- ${{ inputs.root-build-gradle-directory }}
Expand Down
2 changes: 1 addition & 1 deletion java/maven/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
default: 'target/classes'
runs:
using: docker
image: docker://debricked/vulnerable-functionality-maven:master
image: docker://debricked/soot-wrapper-maven:master
entrypoint: /vulnfunc/java/maven/github-action.sh
args:
- ${{ inputs.root-pom-directory }}
Expand Down
Loading