Skip to content

Commit b02ef7a

Browse files
committed
Merge branch 'release/2.0.6'
2 parents 1491800 + 6ab8829 commit b02ef7a

File tree

7 files changed

+107
-32
lines changed

7 files changed

+107
-32
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,30 @@ updates:
33
- package-ecosystem: "maven"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
7-
day: "monday"
8-
time: "06:00"
9-
timezone: "UTC"
6+
interval: "monthly"
107
groups:
11-
maven-dependencies:
8+
maven-build-plugins:
9+
patterns:
10+
- "org.apache.maven.plugins:*"
11+
- "org.jacoco:jacoco-maven-plugin"
12+
- "org.owasp:dependency-check-maven"
13+
- "org.sonatype.plugins:nexus-staging-maven-plugin"
14+
java-production-dependencies:
1215
patterns:
1316
- "*"
17+
exclude-patterns:
18+
- "org.apache.maven.plugins:*"
19+
- "org.jacoco:jacoco-maven-plugin"
20+
- "org.owasp:dependency-check-maven"
21+
- "org.sonatype.plugins:nexus-staging-maven-plugin"
22+
- "org.junit.jupiter:*"
1423
ignore:
1524
# keep using Jetty 10.x (javax.*) instead of Jetty 11 (jakarta.*)
1625
- dependency-name: "org.eclipse.jetty:jetty-server"
17-
versions: ["11.x"]
26+
update-types: ["version-update:semver-major"]
1827
- dependency-name: "org.eclipse.jetty:jetty-servlet"
19-
versions: ["11.x"]
28+
update-types: ["version-update:semver-major"]
29+
2030

2131
- package-ecosystem: "github-actions"
2232
directory: "/" # even for `.github/workflows`

.github/workflows/build.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,26 @@ jobs:
55
build:
66
name: Build and Test
77
runs-on: ubuntu-latest
8-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
98
steps:
109
- uses: actions/checkout@v4
11-
- uses: actions/setup-java@v3
10+
- uses: actions/setup-java@v4
1211
with:
13-
java-version: 17
12+
java-version: 21
1413
distribution: 'temurin'
1514
cache: 'maven'
1615
- name: Ensure to use tagged version
1716
if: startsWith(github.ref, 'refs/tags/')
18-
run: mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
17+
run: mvn -B versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
1918
- name: Build and Test
2019
id: buildAndTest
21-
run: mvn -B clean install jacoco:report -Pcoverage,dependency-check
20+
run: mvn -B clean install jacoco:report -Pcoverage
2221
- name: Upload code coverage report
2322
id: codacyCoverageReporter
2423
run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
2524
env:
2625
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
2726
continue-on-error: true
28-
- uses: actions/upload-artifact@v3
27+
- uses: actions/upload-artifact@v4
2928
with:
3029
name: artifacts
3130
path: target/*.jar
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: OWASP Maven Dependency Check
2+
on:
3+
schedule:
4+
- cron: '0 13 * * 0'
5+
push:
6+
branches:
7+
- 'release/**'
8+
workflow_dispatch:
9+
10+
11+
jobs:
12+
check-dependencies:
13+
name: Check dependencies
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
show-progress: false
19+
- name: Setup Java
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: 17
23+
distribution: 'temurin'
24+
cache: 'maven'
25+
- name: Cache NVD DB
26+
uses: actions/cache@v4
27+
with:
28+
path: ~/.m2/repository/org/owasp/dependency-check-data/
29+
key: dependency-check-${{ github.run_id }}
30+
restore-keys: |
31+
dependency-check
32+
env:
33+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
34+
- name: Run org.owasp:dependency-check plugin
35+
id: dependency-check
36+
continue-on-error: true
37+
run: mvn -B validate -Pdependency-check
38+
env:
39+
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
40+
- name: Upload report on failure
41+
if: steps.dependency-check.outcome == 'failure'
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: dependency-check-report
45+
path: target/dependency-check-report.html
46+
if-no-files-found: error
47+
- name: Slack Notification on regular check
48+
if: github.event_name == 'schedule' && steps.dependency-check.outcome == 'failure'
49+
uses: rtCamp/action-slack-notify@v2
50+
env:
51+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
52+
SLACK_USERNAME: 'Cryptobot'
53+
SLACK_ICON: false
54+
SLACK_ICON_EMOJI: ':bot:'
55+
SLACK_CHANNEL: 'cryptomator-desktop'
56+
SLACK_TITLE: "Vulnerabilities in ${{ github.event.repository.name }} detected."
57+
SLACK_MESSAGE: "Download the <https://github.com/${{ github.repository }}/actions/run/${{ github.run_id }}|report> for more details."
58+
SLACK_FOOTER: false
59+
MSG_MINIMAL: true
60+
- name: Failing workflow on release branch
61+
if: github.event_name == 'push' && steps.dependency-check.outcome == 'failure'
62+
shell: bash
63+
run: exit 1

.github/workflows/publish-central.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
ref: "refs/tags/${{ github.event.inputs.tag }}"
16-
- uses: actions/setup-java@v3
16+
- uses: actions/setup-java@v4
1717
with:
18-
java-version: 17
18+
java-version: 21
1919
distribution: 'temurin'
2020
cache: 'maven'
2121
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml

.github/workflows/publish-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
if: startsWith(github.ref, 'refs/tags/') # only allow publishing tagged versions
99
steps:
1010
- uses: actions/checkout@v4
11-
- uses: actions/setup-java@v3
11+
- uses: actions/setup-java@v4
1212
with:
13-
java-version: 17
13+
java-version: 21
1414
distribution: 'temurin'
1515
cache: 'maven'
1616
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ test-output/
2222
.idea/compiler.xml
2323
.idea/jarRepositories.xml
2424
*.iml
25+
26+
# Maven
27+
pom.xml.versionsBackup

pom.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.cryptomator</groupId>
55
<artifactId>webdav-nio-adapter</artifactId>
6-
<version>2.0.5</version>
6+
<version>2.0.6</version>
77
<name>WebDAV-NIO Adapter</name>
88
<description>Embedded Jetty serving a WebDAV servlet to access resources at a given NIO path.</description>
99
<url>https://github.com/cryptomator/webdav-nio-adapter</url>
@@ -20,16 +20,16 @@
2020

2121
<!-- dependencies -->
2222
<integrations-api.version>1.3.0</integrations-api.version>
23-
<webdavservlet.version>1.2.4</webdavservlet.version>
24-
<jetty.version>10.0.17</jetty.version>
25-
<slf4j.version>2.0.9</slf4j.version>
23+
<webdavservlet.version>1.2.5</webdavservlet.version>
24+
<jetty.version>10.0.20</jetty.version>
25+
<slf4j.version>2.0.11</slf4j.version>
2626

2727
<!-- test dependencies -->
28-
<junit.jupiter.version>5.10.0</junit.jupiter.version>
28+
<junit.jupiter.version>5.10.1</junit.jupiter.version>
2929

3030
<!-- mvn plugin dependencies -->
31-
<dependency-check.version>8.4.0</dependency-check.version>
32-
<jacoco.version>0.8.10</jacoco.version>
31+
<dependency-check.version>9.0.9</dependency-check.version>
32+
<jacoco.version>0.8.11</jacoco.version>
3333
<nexus-staging.version>1.6.13</nexus-staging.version>
3434
<maven.deploy.version>3.1.1</maven.deploy.version>
3535
</properties>
@@ -82,7 +82,7 @@
8282
<dependency>
8383
<groupId>org.jetbrains</groupId>
8484
<artifactId>annotations</artifactId>
85-
<version>24.0.1</version>
85+
<version>24.1.0</version>
8686
<scope>provided</scope>
8787
</dependency>
8888

@@ -113,7 +113,7 @@
113113
<plugin>
114114
<groupId>org.apache.maven.plugins</groupId>
115115
<artifactId>maven-compiler-plugin</artifactId>
116-
<version>3.11.0</version>
116+
<version>3.12.1</version>
117117
<configuration>
118118
<release>${project.build.jdk}</release>
119119
<showWarnings>true</showWarnings>
@@ -122,7 +122,7 @@
122122
<plugin>
123123
<groupId>org.apache.maven.plugins</groupId>
124124
<artifactId>maven-surefire-plugin</artifactId>
125-
<version>3.1.2</version>
125+
<version>3.2.5</version>
126126
</plugin>
127127
<plugin>
128128
<groupId>org.apache.maven.plugins</groupId>
@@ -143,7 +143,7 @@
143143
</plugin>
144144
<plugin>
145145
<artifactId>maven-javadoc-plugin</artifactId>
146-
<version>3.6.0</version>
146+
<version>3.6.3</version>
147147
<executions>
148148
<execution>
149149
<id>attach-javadocs</id>
@@ -166,19 +166,19 @@
166166
<artifactId>dependency-check-maven</artifactId>
167167
<version>${dependency-check.version}</version>
168168
<configuration>
169-
<cveValidForHours>24</cveValidForHours>
169+
<nvdValidForHours>24</nvdValidForHours>
170170
<failBuildOnCVSS>0</failBuildOnCVSS>
171171
<skipTestScope>true</skipTestScope>
172172
<detail>true</detail>
173-
<suppressionFiles>
174-
<suppressionFile>suppression.xml</suppressionFile>
175-
</suppressionFiles>
173+
<suppressionFile>suppression.xml</suppressionFile>
174+
<nvdApiKey>${env.NVD_API_KEY}</nvdApiKey>
176175
</configuration>
177176
<executions>
178177
<execution>
179178
<goals>
180179
<goal>check</goal>
181180
</goals>
181+
<phase>validate</phase>
182182
</execution>
183183
</executions>
184184
</plugin>

0 commit comments

Comments
 (0)