From 988f669c2290a914de80cf8bfd14caab0531f291 Mon Sep 17 00:00:00 2001 From: Milan Panik <5015486+mpanik@users.noreply.github.com> Date: Thu, 22 Feb 2024 16:14:08 -0500 Subject: [PATCH] [#186993968] Fix Dockerfile and Sonar's properties --- .github/workflows/build-test-analyse.yml | 9 +++++---- ci/impl/Dockerfile | 3 +-- pom.xml | 11 ++++++----- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-test-analyse.yml b/.github/workflows/build-test-analyse.yml index f1bdd2f..34920d6 100644 --- a/.github/workflows/build-test-analyse.yml +++ b/.github/workflows/build-test-analyse.yml @@ -9,18 +9,19 @@ on: jobs: build-and-test-java-app: name: Build & Test Java App - uses: DNAstack/dnastack-development-tools/.github/workflows/build-test-java-app.yml@60321a2d7bd83b31dee31376bfcdba24b65ccf99 + uses: DNAstack/dnastack-development-tools/.github/workflows/build-test-java-app.yml@4e75ec231d7c954329f7e47bacd5b02928c5f28e with: - java-version: 17 + java-version: 21 secrets: pat-with-read-packages-permission: ${{ secrets.AUTH_TOKEN }} code-analysis-and-dependency-check: name: Code Analysis and OWASP Dependency Check - uses: DNAstack/dnastack-development-tools/.github/workflows/code-analysis-and-dependency-check.yml@60321a2d7bd83b31dee31376bfcdba24b65ccf99 + uses: DNAstack/dnastack-development-tools/.github/workflows/code-analysis-and-dependency-check.yml@4e75ec231d7c954329f7e47bacd5b02928c5f28e with: with-frontend: false - java-version: 17 + java-version: 21 secrets: pat-with-read-packages-permission: ${{ secrets.AUTH_TOKEN }} sonar-token: ${{ secrets.SONAR_TOKEN }} sonar-host-url: ${{ secrets.SONAR_HOST_URL }} + nvd-api-key: ${{ secrets.NVD_API_KEY }} diff --git a/ci/impl/Dockerfile b/ci/impl/Dockerfile index 9187bf1..89a763e 100644 --- a/ci/impl/Dockerfile +++ b/ci/impl/Dockerfile @@ -10,8 +10,7 @@ FROM amazoncorretto:21-al2023 AS build ARG APP_NAME ARG APP_VERSION -RUN apt-get update -RUN apt-get install -y curl +RUN yum install -y curl tar gzip --allowerasing WORKDIR /build diff --git a/pom.xml b/pom.xml index ebd3f30..2546417 100644 --- a/pom.xml +++ b/pom.xml @@ -30,11 +30,12 @@ ${java.version} 3.0.0-M7 1.2.8 - - 7.4.1 - target/dependency-check-report.json - target/dependency-check-report.html - true + + + 9.0.9 + target/dependency-check-report.json + target/dependency-check-report.html + true 1.0.11 1.0.17