Skip to content

Commit 39eb4d6

Browse files
authored
Merge pull request #182 from LinuxJedi/CI-fixes2
Fix CI issues
2 parents b75f618 + b619386 commit 39eb4d6

4 files changed

Lines changed: 19 additions & 21 deletions

File tree

.github/workflows/nss-pk12util-debian-test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ jobs:
100100
uses: actions/cache@v4
101101
with:
102102
path: /tmp/nss-build
103-
key: nss-debian-source-${{ hashFiles('.github/workflows/wolfpkcs11-nss-debian.patch') }}-${{ env.WOLFSSL_VERSION }}
103+
key: nss-debian-source-${{ hashFiles('.github/workflows/wolfpkcs11-nss-debian.patch', '.github/workflows/nss-pk12util-debian-test.yml') }}-${{ env.WOLFSSL_VERSION }}
104104

105105
- name: Cache NSS built packages
106106
id: cache-nss-packages
107107
uses: actions/cache@v4
108108
with:
109109
path: /tmp/nss-packages
110-
key: nss-debian-packages-${{ hashFiles('.github/workflows/wolfpkcs11-nss-debian.patch') }}-${{ env.WOLFSSL_VERSION }}
110+
key: nss-debian-packages-${{ hashFiles('.github/workflows/wolfpkcs11-nss-debian.patch', '.github/workflows/nss-pk12util-debian-test.yml') }}-${{ env.WOLFSSL_VERSION }}
111111

112112
- name: Get NSS Debian sources and apply wolfPKCS11 patch
113113
if: steps.cache-nss-source.outputs.cache-hit != 'true'
@@ -135,6 +135,16 @@ jobs:
135135
# Copy patch file from workspace to current directory for reliable access
136136
cp "${GITHUB_WORKSPACE}/.github/workflows/wolfpkcs11-nss-debian.patch" ./wolfpkcs11-nss-debian.patch
137137
138+
# Prepend the wolfPKCS11 changelog entry. Done inline (rather than in
139+
# the patch) so future Debian security uploads do not break the hunk
140+
# context every time a new entry lands at the top of debian/changelog.
141+
# `dch --local` derives the new version from whatever is currently at
142+
# the top, so this works regardless of which deb12uN the apt mirror
143+
# currently ships.
144+
DEBEMAIL="support@wolfssl.com" DEBFULLNAME="wolfSSL" \
145+
dch --local "+wolfSSL-" --distribution bookworm-security \
146+
"First build with wolfPKCS11 backend"
147+
138148
# Apply the patch
139149
patch -p1 < ./wolfpkcs11-nss-debian.patch
140150

.github/workflows/nss.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
--enable-keygen --enable-pwdbased --enable-scrypt --with-eccminsz=192
136136
--with-max-rsa-bits=8192 --enable-rsapss
137137
CFLAGS="-DWOLFSSL_PUBLIC_MP -DWC_RSA_DIRECT -DRSA_MIN_SIZE=1024 -DWOLFSSL_PSS_LONG_SALT"
138+
check: false
138139
install: true
139140

140141
- name: Cache wolfSSL

.github/workflows/tpm2-store-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
id: cache-wolfssl
4848
with:
4949
path: build-dir/
50-
key: wolfssl-${{ matrix.wolfssl_version }}
50+
key: wolfssl-${{ matrix.wolfssl_version }}-tpm
5151
lookup-only: true
5252

5353
- name: debug
@@ -60,7 +60,7 @@ jobs:
6060
repository: wolfssl/wolfssl
6161
ref: ${{ matrix.wolfssl_version }}
6262
path: wolfssl/
63-
configure: --enable-all --disable-anon CPPFLAGS=-DWC_RSA_DIRECT
63+
configure: --enable-all --disable-anon --disable-nginx CPPFLAGS=-DWC_RSA_DIRECT
6464
check: false
6565
install: true
6666

@@ -79,14 +79,14 @@ jobs:
7979
id: cache-wolftpm
8080
with:
8181
path: build-dir/
82-
key: wolftpm-${{ matrix.wolftpm_version }}
82+
key: wolftpm-${{ matrix.wolftpm_version }}-tpm
8383
lookup-only: true
8484

8585
- name: Checking cache for wolfssl
8686
uses: actions/cache@v4
8787
with:
8888
path: build-dir/
89-
key: wolfssl-${{ matrix.wolfssl_version }}
89+
key: wolfssl-${{ matrix.wolfssl_version }}-tpm
9090
fail-on-cache-miss: true
9191

9292
- name: debug
@@ -133,14 +133,14 @@ jobs:
133133
uses: actions/cache@v4
134134
with:
135135
path: build-dir/
136-
key: wolfssl-${{ matrix.wolfssl_version }}
136+
key: wolfssl-${{ matrix.wolfssl_version }}-tpm
137137
fail-on-cache-miss: true
138138

139139
- name: Checking cache for wolftpm
140140
uses: actions/cache@v4
141141
with:
142142
path: build-dir/
143-
key: wolftpm-${{ matrix.wolftpm_version }}
143+
key: wolftpm-${{ matrix.wolftpm_version }}-tpm
144144
fail-on-cache-miss: true
145145

146146
- name: Restore wolfTPM examples from cache

.github/workflows/wolfpkcs11-nss-debian.patch

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
diff '--color=auto' -ur a/debian/changelog b/debian/changelog
2-
--- a/debian/changelog 2024-10-10 20:51:11.000000000 +0100
3-
+++ b/debian/changelog 2025-08-14 15:02:27.391964431 +0100
4-
@@ -1,3 +1,9 @@
5-
+nss (2:3.87.1-1+wolfSSL-1) bookworm-security; urgency=medium
6-
+
7-
+ * First build with wolfPKCS11 backend
8-
+
9-
+ -- wolfSSL <support@wolfssl.com> Thu, 08 Aug 2025 15:02:11 +0100
10-
+
11-
nss (2:3.87.1-1+deb12u1) bookworm-security; urgency=medium
12-
13-
* nss: fix CVE-2024-6602, CVE-2024-6609 and CVE-2024-0743
141
diff '--color=auto' -ur a/debian/control b/debian/control
152
--- a/debian/control 2022-05-31 22:30:45.000000000 +0100
163
+++ b/debian/control 2025-08-14 16:47:27.639784242 +0100

0 commit comments

Comments
 (0)