Skip to content

Commit ae2d084

Browse files
committed
Add guardrails to GPG keys; Fix impl-jackson module
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent b9e382f commit ae2d084

File tree

3 files changed

+80
-30
lines changed

3 files changed

+80
-30
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
1919
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
2020
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
21+
MAVEN_GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
2122

2223
steps:
2324
- uses: radcortez/project-metadata-action@main
@@ -43,6 +44,14 @@ jobs:
4344
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
4445
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4546

47+
- name: GPG sanity check
48+
run: |
49+
gpg --list-secret-keys --keyid-format LONG
50+
echo "test" | gpg --batch --yes --pinentry-mode loopback \
51+
--passphrase "$MAVEN_GPG_PASSPHRASE" \
52+
--local-user "$MAVEN_GPG_FINGERPRINT" \
53+
--clearsign > /dev/null
54+
4655
- name: Configure Git author
4756
run: |
4857
git config --local user.email "[email protected]"

impl/jackson/pom.xml

Lines changed: 50 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,53 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2-
<modelVersion>4.0.0</modelVersion>
3-
<parent>
4-
<groupId>io.serverlessworkflow</groupId>
5-
<artifactId>serverlessworkflow-impl</artifactId>
6-
<version>8.0.0-SNAPSHOT</version>
7-
</parent>
8-
<artifactId>serverlessworkflow-impl-jackson</artifactId>
9-
<packaging>pom</packaging>
10-
<name> Serverless Workflow :: Impl :: Jackson </name>
11-
<dependencies>
12-
<dependency>
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
135
<groupId>io.serverlessworkflow</groupId>
14-
<artifactId>serverlessworkflow-impl-core</artifactId>
15-
</dependency>
16-
<dependency>
17-
<groupId>io.serverlessworkflow</groupId>
18-
<artifactId>serverlessworkflow-impl-jq</artifactId>
19-
</dependency>
20-
<dependency>
21-
<groupId>io.serverlessworkflow</groupId>
22-
<artifactId>serverlessworkflow-impl-model</artifactId>
23-
</dependency>
24-
<dependency>
25-
<groupId>io.serverlessworkflow</groupId>
26-
<artifactId>serverlessworkflow-impl-validation</artifactId>
27-
</dependency>
28-
<dependency>
29-
<groupId>io.serverlessworkflow</groupId>
30-
<artifactId>serverlessworkflow-impl-lifecycle-events</artifactId>
31-
</dependency>
6+
<artifactId>serverlessworkflow-impl</artifactId>
7+
<version>8.0.0-SNAPSHOT</version>
8+
</parent>
9+
<artifactId>serverlessworkflow-impl-jackson</artifactId>
10+
<packaging>jar</packaging>
11+
<name>Serverless Workflow :: Impl :: Jackson</name>
12+
<description>
13+
Starter library for Jackson implementation.
14+
</description>
15+
<dependencies>
16+
<dependency>
17+
<groupId>io.serverlessworkflow</groupId>
18+
<artifactId>serverlessworkflow-impl-core</artifactId>
19+
</dependency>
20+
<dependency>
21+
<groupId>io.serverlessworkflow</groupId>
22+
<artifactId>serverlessworkflow-impl-jq</artifactId>
23+
</dependency>
24+
<dependency>
25+
<groupId>io.serverlessworkflow</groupId>
26+
<artifactId>serverlessworkflow-impl-model</artifactId>
27+
</dependency>
28+
<dependency>
29+
<groupId>io.serverlessworkflow</groupId>
30+
<artifactId>serverlessworkflow-impl-validation</artifactId>
31+
</dependency>
32+
<dependency>
33+
<groupId>io.serverlessworkflow</groupId>
34+
<artifactId>serverlessworkflow-impl-lifecycle-events</artifactId>
35+
</dependency>
3236
</dependencies>
37+
38+
<build>
39+
<plugins>
40+
<plugin>
41+
<groupId>org.apache.maven.plugins</groupId>
42+
<artifactId>maven-jar-plugin</artifactId>
43+
<configuration>
44+
<archive>
45+
<manifestEntries>
46+
<Automatic-Module-Name>io.serverlessworkflow.impl.jackson</Automatic-Module-Name>
47+
</manifestEntries>
48+
</archive>
49+
</configuration>
50+
</plugin>
51+
</plugins>
52+
</build>
3353
</project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright 2020-Present The Serverless Workflow Specification Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package io.serverlessworkflow.impl.jackson;
17+
18+
/** Marker class for the Serverless Workflow Jackson starter JAR (no runtime code). */
19+
public final class JacksonStarter {
20+
private JacksonStarter() {}
21+
}

0 commit comments

Comments
 (0)