Skip to content

Commit 5440dfa

Browse files
committed
Merge branch 'release/1.5.1'
2 parents 7a1fe68 + 513558c commit 5440dfa

File tree

9 files changed

+107
-48
lines changed

9 files changed

+107
-48
lines changed

.github/dependabot.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,36 @@ updates:
66
interval: "monthly"
77
day: "monday"
88
time: "06:00"
9-
timezone: "UTC"
9+
timezone: "Etc/UTC"
1010
groups:
11-
maven-dependencies:
11+
java-test-dependencies:
12+
patterns:
13+
- "org.junit.jupiter:*"
14+
- "org.mockito:*"
15+
- "org.hamcrest:*"
16+
- "org.openjdk.jmh:*"
17+
- "com.google.guava:guava"
18+
maven-build-plugins:
19+
patterns:
20+
- "org.apache.maven.plugins:*"
21+
- "org.jacoco:jacoco-maven-plugin"
22+
- "org.codehaus.mojo:versions-maven-plugin"
23+
- "org.owasp:dependency-check-maven"
24+
- "org.sonatype.plugins:nexus-staging-maven-plugin"
25+
java-production-dependencies:
1226
patterns:
1327
- "*"
28+
exclude-patterns:
29+
- "org.junit.jupiter:*"
30+
- "org.mockito:*"
31+
- "org.hamcrest:*"
32+
- "org.openjdk.jmh:*"
33+
- "com.google.guava:guava"
34+
- "org.apache.maven.plugins:*"
35+
- "org.jacoco:jacoco-maven-plugin"
36+
- "org.codehaus.mojo:versions-maven-plugin"
37+
- "org.owasp:dependency-check-maven"
38+
- "org.sonatype.plugins:nexus-staging-maven-plugin"
1439

1540
- package-ecosystem: "github-actions"
1641
directory: "/" # even for `.github/workflows`

.github/workflows/build.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,37 @@ 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
1110
with:
1211
fetch-depth: 0
13-
- uses: actions/setup-java@v3
12+
- uses: actions/setup-java@v4
1413
with:
1514
java-version: 21
1615
distribution: 'zulu'
1716
cache: 'maven'
1817
- name: Cache SonarCloud packages
19-
uses: actions/cache@v3
18+
uses: actions/cache@v4
2019
with:
2120
path: ~/.sonar/cache
2221
key: ${{ runner.os }}-sonar
2322
restore-keys: ${{ runner.os }}-sonar
2423
- name: Ensure to use tagged version
2524
if: startsWith(github.ref, 'refs/tags/')
26-
run: ./mvnw versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
25+
run: ./mvnw -B versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
2726
- name: Build and Test
2827
run: >
2928
./mvnw -B verify
3029
jacoco:report
3130
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
32-
-Pcoverage,dependency-check
31+
-Pcoverage
3332
-Dsonar.projectKey=cryptomator_siv-mode
3433
-Dsonar.organization=cryptomator
3534
-Dsonar.host.url=https://sonarcloud.io
3635
env:
3736
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3837
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
39-
- uses: actions/upload-artifact@v3
38+
- uses: actions/upload-artifact@v4
4039
with:
4140
name: artifacts
4241
path: target/*.jar
@@ -50,11 +49,11 @@ jobs:
5049
} >> $GITHUB_OUTPUT
5150
- name: Create Release
5251
if: startsWith(github.ref, 'refs/tags/')
53-
uses: softprops/action-gh-release@v1
52+
uses: softprops/action-gh-release@v2
5453
with:
5554
token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
5655
body: |-
57-
## Maven Coordinates
56+
### Maven Coordinates
5857
```xml
5958
<dependency>
6059
<groupId>org.cryptomator</groupId>
@@ -63,10 +62,10 @@ jobs:
6362
</dependency>
6463
```
6564
66-
## Artifact Checksums
65+
### Artifact Checksums
6766
```txt
6867
${{ steps.checksums.outputs.sha256 }}
6968
```
7069
71-
See [README.md](../#reproducible-builds) section regarding reproducing this build.
70+
See [README.md](https://github.com/cryptomator/siv-mode/#reproducible-builds) section regarding reproducing this build.
7271
generate_release_notes: true

.github/workflows/codeql-analysis.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,31 @@ jobs:
1313
analyse:
1414
name: Analyse
1515
runs-on: ubuntu-latest
16-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
1720
steps:
18-
- uses: actions/checkout@v4
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
1923
with:
2024
fetch-depth: 2
21-
- uses: actions/setup-java@v3
25+
- name: Set up Java
26+
uses: actions/setup-java@v4
2227
with:
2328
java-version: 21
2429
distribution: 'zulu'
2530
cache: 'maven'
2631
- name: Initialize CodeQL
27-
uses: github/codeql-action/init@v2
32+
uses: github/codeql-action/init@v3
2833
with:
2934
languages: java
30-
- name: Build and Test
35+
config: |
36+
queries:
37+
- uses: security-and-quality
38+
- name: Build
3139
run: ./mvnw -B install -DskipTests
3240
- name: Perform CodeQL Analysis
33-
uses: github/codeql-action/analyze@v2
41+
uses: github/codeql-action/analyze@v3
42+
with:
43+
category: "/language:java"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: OWASP Maven Dependency Check
2+
on:
3+
schedule:
4+
- cron: '0 7 * * 0'
5+
push:
6+
branches:
7+
- 'release/**'
8+
workflow_dispatch:
9+
10+
11+
jobs:
12+
check-dependencies:
13+
uses: skymatic/workflows/.github/workflows/run-dependency-check.yml@v1
14+
with:
15+
runner-os: 'ubuntu-latest'
16+
java-distribution: 'zulu'
17+
java-version: 21
18+
secrets:
19+
nvd-api-key: ${{ secrets.NVD_API_KEY }}
20+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/publish-central.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ 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:
1818
java-version: 21
1919
distribution: 'zulu'
@@ -23,10 +23,10 @@ jobs:
2323
server-password: MAVEN_PASSWORD # env variable for token in deploy
2424
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
2525
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
26-
- name: Verify project version = ${{ github.event.release.tag_name }}
26+
- name: Verify project version = ${{ github.event.inputs.tag }}
2727
run: |
2828
PROJECT_VERSION=$(./mvnw help:evaluate "-Dexpression=project.version" -q -DforceStdout)
29-
test "$PROJECT_VERSION" = "${{ github.event.release.tag_name }}"
29+
test "$PROJECT_VERSION" = "${{ github.event.inputs.tag }}"
3030
- name: Deploy
3131
run: ./mvnw deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
3232
env:

.github/workflows/publish-github.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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:
1313
java-version: 21
1414
distribution: 'zulu'

.snyk

Lines changed: 0 additions & 8 deletions
This file was deleted.

pom.xml

Lines changed: 22 additions & 17 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>siv-mode</artifactId>
6-
<version>1.5.0</version>
6+
<version>1.5.1</version>
77

88
<name>SIV Mode</name>
99
<description>RFC 5297 SIV mode: deterministic authenticated encryption</description>
@@ -35,31 +35,34 @@
3535

3636
<properties>
3737
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38-
<project.build.outputTimestamp>2023-10-06T15:38:57Z</project.build.outputTimestamp>
38+
<project.build.outputTimestamp>2024-04-15T10:23:33Z</project.build.outputTimestamp>
3939

4040
<!-- dependencies -->
41-
<bouncycastle.version>1.70</bouncycastle.version>
41+
<bouncycastle.version>1.78</bouncycastle.version>
4242

4343
<!-- test dependencies -->
44-
<junit.version>5.10.0</junit.version>
45-
<mockito.version>5.5.0</mockito.version>
44+
<junit.version>5.10.2</junit.version>
45+
<mockito.version>5.11.0</mockito.version>
4646
<jmh.version>1.37</jmh.version>
4747
<hamcrest.version>2.2</hamcrest.version>
48-
<guava.version>32.1.2-jre</guava.version>
48+
<guava.version>33.1.0-jre</guava.version>
49+
50+
<!-- maven plugins -->
51+
<dependency-check.version>9.1.0</dependency-check.version>
4952
</properties>
5053

5154
<dependencies>
5255
<dependency>
5356
<groupId>org.bouncycastle</groupId>
54-
<artifactId>bcprov-jdk15on</artifactId>
57+
<artifactId>bcprov-jdk18on</artifactId>
5558
<version>${bouncycastle.version}</version>
5659
<!-- see maven-shade-plugin; we don't want this as a transitive dependency in other projects -->
5760
<optional>true</optional>
5861
</dependency>
5962
<dependency>
6063
<groupId>org.jetbrains</groupId>
6164
<artifactId>annotations</artifactId>
62-
<version>24.0.1</version>
65+
<version>24.1.0</version>
6366
<scope>provided</scope>
6467
</dependency>
6568

@@ -107,7 +110,7 @@
107110
<plugin>
108111
<groupId>org.codehaus.mojo</groupId>
109112
<artifactId>versions-maven-plugin</artifactId>
110-
<version>2.9.0</version>
113+
<version>2.16.2</version>
111114
</plugin>
112115
<plugin>
113116
<groupId>org.apache.maven.plugins</groupId>
@@ -133,7 +136,7 @@
133136
</plugin>
134137
<plugin>
135138
<artifactId>maven-compiler-plugin</artifactId>
136-
<version>3.11.0</version>
139+
<version>3.13.0</version>
137140
<configuration>
138141
<release>8</release>
139142
<encoding>UTF-8</encoding>
@@ -159,7 +162,7 @@
159162
<plugin>
160163
<groupId>org.apache.maven.plugins</groupId>
161164
<artifactId>maven-surefire-plugin</artifactId>
162-
<version>3.1.2</version>
165+
<version>3.2.5</version>
163166
</plugin>
164167
<plugin>
165168
<artifactId>maven-jar-plugin</artifactId>
@@ -187,7 +190,7 @@
187190
</plugin>
188191
<plugin>
189192
<artifactId>maven-javadoc-plugin</artifactId>
190-
<version>3.6.0</version>
193+
<version>3.6.3</version>
191194
<executions>
192195
<execution>
193196
<id>attach-javadocs</id>
@@ -207,7 +210,7 @@
207210
</plugin>
208211
<plugin>
209212
<artifactId>maven-shade-plugin</artifactId>
210-
<version>3.5.1</version>
213+
<version>3.5.2</version>
211214
<executions>
212215
<execution>
213216
<phase>package</phase>
@@ -253,19 +256,21 @@
253256
<plugin>
254257
<groupId>org.owasp</groupId>
255258
<artifactId>dependency-check-maven</artifactId>
256-
<version>8.4.0</version>
259+
<version>${dependency-check.version}</version>
257260
<configuration>
258-
<cveValidForHours>24</cveValidForHours>
261+
<nvdValidForHours>24</nvdValidForHours>
259262
<failBuildOnCVSS>0</failBuildOnCVSS>
260263
<skipTestScope>true</skipTestScope>
261264
<detail>true</detail>
262265
<suppressionFile>suppression.xml</suppressionFile>
266+
<nvdApiKey>${env.NVD_API_KEY}</nvdApiKey>
263267
</configuration>
264268
<executions>
265269
<execution>
266270
<goals>
267271
<goal>check</goal>
268272
</goals>
273+
<phase>validate</phase>
269274
</execution>
270275
</executions>
271276
</plugin>
@@ -280,7 +285,7 @@
280285
<plugin>
281286
<groupId>org.jacoco</groupId>
282287
<artifactId>jacoco-maven-plugin</artifactId>
283-
<version>0.8.10</version>
288+
<version>0.8.11</version>
284289
<executions>
285290
<execution>
286291
<id>prepare-agent</id>
@@ -306,7 +311,7 @@
306311
<plugins>
307312
<plugin>
308313
<artifactId>maven-gpg-plugin</artifactId>
309-
<version>3.1.0</version>
314+
<version>3.2.2</version>
310315
<executions>
311316
<execution>
312317
<id>sign-artifacts</id>

suppression.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@
88
<gav regex="true">org\.bouncycastle:bcprov-jdk15on:.*</gav>
99
<cve>CVE-2023-33201</cve>
1010
</suppress>
11-
</suppressions>
11+
<suppress>
12+
<notes><![CDATA[
13+
file name: bcprov-jdk15on-1.70.jar
14+
Reason: PEMParser is not used
15+
]]></notes>
16+
<packageUrl regex="true">^pkg:maven/org\.bouncycastle/bcprov\-jdk15on@.*$</packageUrl>
17+
<cve>CVE-2023-33202</cve>
18+
</suppress>
19+
</suppressions>

0 commit comments

Comments
 (0)