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

Feat dependency update #6

Merged
merged 8 commits into from
Dec 27, 2023
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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All noticeable changes to this project will be documented in this file.
The format is based on [changelog][keepachangelog], and this project adheres
to [semantic versioning][semver].

## [0.1.2][] `2023-12-27`

### Changed

* Update dependency check 9.0.7
* Update sonar scanner cli 5.0.1.3006
* Update dotnet-sonarscanner 6.0
* Update postgres driver 42.7.0
* Update mysql driver 8.2.0

## [0.1.1][] `2023-11-16`

### Fixed
Expand All @@ -25,5 +35,6 @@ to [semantic versioning][semver].

<!-- Tags -->

[0.1.2]: https://github.com/sentoz/multi-sonarqube-scanner-cli/tree/0.1.2
[0.1.1]: https://github.com/sentoz/multi-sonarqube-scanner-cli/tree/0.1.1
[0.1.0]: https://github.com/sentoz/multi-sonarqube-scanner-cli/tree/0.1.0
16 changes: 8 additions & 8 deletions Dockerfile.base-focal
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ FROM eclipse-temurin:17-jdk-focal
LABEL org.opencontainers.image.authors="Dmitriy Okladin <sentoz66@gmail.com>"
LABEL org.opencontainers.image.source="https://github.com/sentoz/multi-sonarqube-scanner-cli"

ARG POSTGRES_DRIVER_VERSION=42.2.19
ARG MYSQL_DRIVER_VERSION=8.0.23
ARG DEPENDENCY_CHECK_VERSION=8.1.2
ARG POSTGRES_DRIVER_VERSION=42.7.0
ARG MYSQL_DRIVER_VERSION=8.2.0
ARG DEPENDENCY_CHECK_VERSION=9.0.7
ARG DEPENDENCY_CHECK_HOME=/opt/dependency-check

ARG SONARQUBE_TOKEN
ARG SONARQUBE_URL

ARG SONAR_SCANNER_VERSION=4.8.0.2856
ARG SONAR_SCANNER_VERSION=5.0.1.3006

ARG SONAR_SCANNER_HOME=/opt/sonar-scanner

Expand Down Expand Up @@ -47,10 +47,10 @@ RUN set -eux; \
unzip dependency-check.zip; \
rm dependency-check.zip; \
wget -U "scannercli" -q -O "$DEPENDENCY_CHECK_HOME/plugins/postgresql-$POSTGRES_DRIVER_VERSION.jar" https://jdbc.postgresql.org/download/postgresql-$POSTGRES_DRIVER_VERSION.jar; \
wget -U "scannercli" -q -O /opt/mysql-connector-java-$MYSQL_DRIVER_VERSION.zip https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-$MYSQL_DRIVER_VERSION.zip; \
unzip mysql-connector-java-$MYSQL_DRIVER_VERSION.zip; \
mv mysql-connector-java-$MYSQL_DRIVER_VERSION/mysql-connector-java-$MYSQL_DRIVER_VERSION.jar $DEPENDENCY_CHECK_HOME/plugins/mysql-connector-java-$MYSQL_DRIVER_VERSION.jar; \
rm -rf mysql-connector-java-$MYSQL_DRIVER_VERSION.zip mysql-connector-java-$MYSQL_DRIVER_VERSION; \
wget -U "scannercli" -q -O /opt/mysql-connector-j-$MYSQL_DRIVER_VERSION.zip https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-$MYSQL_DRIVER_VERSION.zip; \
unzip mysql-connector-j-$MYSQL_DRIVER_VERSION.zip; \
mv mysql-connector-j-$MYSQL_DRIVER_VERSION/mysql-connector-j-$MYSQL_DRIVER_VERSION.jar $DEPENDENCY_CHECK_HOME/plugins/mysql-connector-j-$MYSQL_DRIVER_VERSION.jar; \
rm -rf mysql-connector-j-$MYSQL_DRIVER_VERSION.zip mysql-connector-j-$MYSQL_DRIVER_VERSION; \
unzip sonar-scanner-cli.zip; \
rm sonar-scanner-cli.zip sonar-scanner-cli.zip.asc; \
mv "sonar-scanner-$SONAR_SCANNER_VERSION" "$SONAR_SCANNER_HOME";
Expand Down
16 changes: 8 additions & 8 deletions Dockerfile.base-jammy
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ FROM eclipse-temurin:17-jdk
LABEL org.opencontainers.image.authors="Dmitriy Okladin <sentoz66@gmail.com>"
LABEL org.opencontainers.image.source="https://github.com/sentoz/multi-sonarqube-scanner-cli"

ARG POSTGRES_DRIVER_VERSION=42.2.19
ARG MYSQL_DRIVER_VERSION=8.0.23
ARG DEPENDENCY_CHECK_VERSION=8.1.2
ARG POSTGRES_DRIVER_VERSION=42.7.0
ARG MYSQL_DRIVER_VERSION=8.2.0
ARG DEPENDENCY_CHECK_VERSION=9.0.7
ARG DEPENDENCY_CHECK_HOME=/opt/dependency-check

ARG SONARQUBE_TOKEN
ARG SONARQUBE_URL

ARG SONAR_SCANNER_VERSION=4.8.0.2856
ARG SONAR_SCANNER_VERSION=5.0.1.3006

ARG SONAR_SCANNER_HOME=/opt/sonar-scanner

Expand Down Expand Up @@ -47,10 +47,10 @@ RUN set -eux; \
unzip dependency-check.zip; \
rm dependency-check.zip; \
wget -U "scannercli" -q -O "$DEPENDENCY_CHECK_HOME/plugins/postgresql-$POSTGRES_DRIVER_VERSION.jar" https://jdbc.postgresql.org/download/postgresql-$POSTGRES_DRIVER_VERSION.jar; \
wget -U "scannercli" -q -O /opt/mysql-connector-java-$MYSQL_DRIVER_VERSION.zip https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-$MYSQL_DRIVER_VERSION.zip; \
unzip mysql-connector-java-$MYSQL_DRIVER_VERSION.zip; \
mv mysql-connector-java-$MYSQL_DRIVER_VERSION/mysql-connector-java-$MYSQL_DRIVER_VERSION.jar $DEPENDENCY_CHECK_HOME/plugins/mysql-connector-java-$MYSQL_DRIVER_VERSION.jar; \
rm -rf mysql-connector-java-$MYSQL_DRIVER_VERSION.zip mysql-connector-java-$MYSQL_DRIVER_VERSION; \
wget -U "scannercli" -q -O /opt/mysql-connector-j-$MYSQL_DRIVER_VERSION.zip https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-$MYSQL_DRIVER_VERSION.zip; \
unzip mysql-connector-j-$MYSQL_DRIVER_VERSION.zip; \
mv mysql-connector-j-$MYSQL_DRIVER_VERSION/mysql-connector-j-$MYSQL_DRIVER_VERSION.jar $DEPENDENCY_CHECK_HOME/plugins/mysql-connector-j-$MYSQL_DRIVER_VERSION.jar; \
rm -rf mysql-connector-j-$MYSQL_DRIVER_VERSION.zip mysql-connector-j-$MYSQL_DRIVER_VERSION; \
unzip sonar-scanner-cli.zip; \
rm sonar-scanner-cli.zip sonar-scanner-cli.zip.asc; \
mv "sonar-scanner-$SONAR_SCANNER_VERSION" "$SONAR_SCANNER_HOME";
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dotnet-3.1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG SONARQUBE_URL

ARG SONAR_SCANNER_HOME=/opt/sonar-scanner

ARG DOTNET_SONARSCANNER_VERSION=5.5.3
ARG DOTNET_SONARSCANNER_VERSION=6.0

ENV HOME=/tmp
ENV XDG_CONFIG_HOME=/tmp
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dotnet-5.0
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG SONARQUBE_URL

ARG SONAR_SCANNER_HOME=/opt/sonar-scanner

ARG DOTNET_SONARSCANNER_VERSION=5.5.3
ARG DOTNET_SONARSCANNER_VERSION=6.0

ENV HOME=/tmp
ENV XDG_CONFIG_HOME=/tmp
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dotnet-6.0
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG SONARQUBE_URL

ARG SONAR_SCANNER_HOME=/opt/sonar-scanner

ARG DOTNET_SONARSCANNER_VERSION=5.11
ARG DOTNET_SONARSCANNER_VERSION=6.0

ENV HOME=/tmp
ENV XDG_CONFIG_HOME=/tmp
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dotnet-7.0
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG SONARQUBE_URL

ARG SONAR_SCANNER_HOME=/opt/sonar-scanner

ARG DOTNET_SONARSCANNER_VERSION=5.11
ARG DOTNET_SONARSCANNER_VERSION=6.0

ENV HOME=/tmp
ENV XDG_CONFIG_HOME=/tmp
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ Special thanks to [WoozyMasta][] for the utility [guassp][].

You need to pass arguments to build.:

* **`SONAR_SCANNER_VERSION`**=`4.8.0.2856` - version of the scanner, you can
* **`SONAR_SCANNER_VERSION`**=`5.0.1.3006` - version of the scanner, you can
take in project repositories [sonar-scanner-cli][]
* **`DOTNET_SONARSCANNER_VERSION`**=`5.11` - dotnet-sonarscanner version
* **`DOTNET_SONARSCANNER_VERSION`**=`6.0` - dotnet-sonarscanner version
* **`GRADLE_VERSION`**=`8.1.1` - gradle version
* **`POSTGRES_DRIVER_VERSION`**=`42.2.19` - postgres driver version
* **`MYSQL_DRIVER_VERSION`**=`8.0.23` - mysql driver version
* **`DEPENDENCY_CHECK_VERSION`**=`8.1.2` - [DependencyCheck][] version
* **`POSTGRES_DRIVER_VERSION`**=`42.7.0` - postgres driver version
* **`MYSQL_DRIVER_VERSION`**=`8.2.0` - mysql driver version
* **`DEPENDENCY_CHECK_VERSION`**=`9.0.7` - [DependencyCheck][] version

### Building an Image with a Plugin Cache

Expand Down Expand Up @@ -198,7 +198,7 @@ data from it, and not download it from the Internet at each start.
* **`OWASP_DEPENDENCY_CHECK_DB_STRING`** - database connection string
* **`OWASP_DEPENDENCY_CHECK_DB_PASSWORD`** - database connection password
* **`OWASP_DEPENDENCY_CHECK_DB_USER`** - username to connect to the database
* **`OWASP_DEPENDENCY_CHECK_CVE_VALID_HOURS`** - `24` - The number of hours
* **`OWASP_DEPENDENCY_CHECK_NVD_VALID_HOURS`** - `24` - The number of hours
after which the NVD will check for a database update.

#### Criteria for evaluation
Expand Down
12 changes: 6 additions & 6 deletions README_RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@

Для сборки необходимо передать аргументы:

* **`SONAR_SCANNER_VERSION`**=`4.8.0.2856` - версия сканера, взять можно в
* **`SONAR_SCANNER_VERSION`**=`5.0.1.3006` - версия сканера, взять можно в
репозитории проекта [sonar-scanner-cli][]
* **`DOTNET_SONARSCANNER_VERSION`**=`5.4.1` - версия dotnet-sonarscanner
* **`DOTNET_SONARSCANNER_VERSION`**=`6.0` - версия dotnet-sonarscanner
* **`GRADLE_VERSION`**=`8.1.1` - версия gradle
* **`POSTGRES_DRIVER_VERSION`**=`42.2.19` - версия драйвера postgres
* **`MYSQL_DRIVER_VERSION`**=`8.0.23` - версия драйвера mysql
* **`DEPENDENCY_CHECK_VERSION`**=`8.1.2` - версия [DependencyCheck][]
* **`POSTGRES_DRIVER_VERSION`**=`42.7.0` - версия драйвера postgres
* **`MYSQL_DRIVER_VERSION`**=`8.3.0` - версия драйвера mysql
* **`DEPENDENCY_CHECK_VERSION`**=`9.0.7` - версия [DependencyCheck][]

### Сборка образа с кэшем плагинов

Expand Down Expand Up @@ -200,7 +200,7 @@
данных
* **`OWASP_DEPENDENCY_CHECK_DB_USER`** - имя пользователя для подключения к
базе данных
* **`OWASP_DEPENDENCY_CHECK_CVE_VALID_HOURS`** - `24` - Кол-во часов через
* **`OWASP_DEPENDENCY_CHECK_NVD_VALID_HOURS`** - `24` - Кол-во часов через
сколько будет выполняться проверка наличия обновления базы из NVD.

#### Критерии оценки
Expand Down
4 changes: 2 additions & 2 deletions scripts/dependency_check_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# OWASP Dependency Check
: "${OWASP_DEPENDENCY_CHECK_SUPPRESSIONS_FILE_PATH:=$PROJECT_DIR/suppression.xml}"
: "${OWASP_DEPENDENCY_CHECK_DISABLE_OSS_INDEX:=true}"
: "${OWASP_DEPENDENCY_CHECK_CVE_VALID_HOURS:=24}"
: "${OWASP_DEPENDENCY_CHECK_NVD_VALID_HOURS:=24}"
: "${OWASP_DEPENDENCY_CHECK_DB_DRIVER:-}"
# Version of analyzed project
version="${REF_NAME:-MR-${MERGE_REQUEST_ID:-0}}"
Expand Down Expand Up @@ -43,7 +43,7 @@ if [ -n "${OWASP_DEPENDENCY_CHECK_DB_DRIVER:-}" ] &&
--connectionString "$OWASP_DEPENDENCY_CHECK_DB_STRING"
--dbPassword "$OWASP_DEPENDENCY_CHECK_DB_PASSWORD"
--dbUser "$OWASP_DEPENDENCY_CHECK_DB_USER"
--cveValidForHours "$OWASP_DEPENDENCY_CHECK_CVE_VALID_HOURS"
--nvdValidForHours "$OWASP_DEPENDENCY_CHECK_NVD_VALID_HOURS"
--noupdate
)
else
Expand Down