File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
sigstore-java/src/main/java/dev/sigstore/encryption/certificates Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,23 @@ concurrency:
14
14
15
15
jobs :
16
16
examples :
17
- name : Build and run examples
18
- runs-on : ubuntu-latest
17
+ name : Build and run examples on ${{ matrix.os }}
18
+ runs-on : ${{ matrix.os }}
19
+
20
+ strategy :
21
+ fail-fast : false
22
+ matrix :
23
+ os : [ubuntu-latest, macos-latest, windows-latest]
19
24
20
25
permissions :
21
26
id-token : write
22
27
23
28
steps :
29
+ - name : Enable long paths in Git
30
+ if : runner.os == 'Windows'
31
+ run : git config --system core.longpaths true
32
+ shell : bash
33
+
24
34
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25
35
with :
26
36
persist-credentials : false
@@ -36,19 +46,22 @@ jobs:
36
46
37
47
- name : run examples against released sigstore
38
48
working-directory : examples/hello-world
49
+ shell : bash
39
50
run : ./test.sh
40
51
41
52
- name : install sigstore java development jars into mavenLocal
42
53
run : ./gradlew publishToMavenLocal -Prelease -PskipSigning
43
54
44
55
- name : calculate development version
45
56
id : dev_version
57
+ shell : bash
46
58
run : |
47
59
set -Exeo pipefail
48
60
echo "version=$(grep "^version=" gradle.properties | cut -d'=' -f2)" >> $GITHUB_OUTPUT
49
61
50
62
- name : run examples against development version
51
63
working-directory : examples/hello-world
64
+ shell : bash
52
65
env :
53
66
VERSION : ${{ steps.dev_version.outputs.version }}
54
67
run : ./test.sh -Dsigstore.version=${VERSION}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public static String toPemString(Certificate cert) throws IOException {
48
48
pemWriter .writeObject (cert );
49
49
pemWriter .flush ();
50
50
}
51
- return certWriter .toString ();
51
+ return certWriter .toString (). replaceAll ( " \r \n " , " \n " ) ;
52
52
}
53
53
54
54
/** Convert a certificate to a PEM encoded certificate. */
@@ -94,7 +94,7 @@ public static String toPemString(CertPath certs) throws IOException {
94
94
}
95
95
pemWriter .flush ();
96
96
}
97
- return certWriter .toString ();
97
+ return certWriter .toString (). replaceAll ( " \r \n " , " \n " ) ;
98
98
}
99
99
100
100
/** Convert a CertPath to a PEM encoded certificate chain. */
You can’t perform that action at this time.
0 commit comments