workflows: pin OpenSSL 3 for macOS bundles
What changed, and why it matters
This commit changes the macOS build instructions in an automated workflow so that the build explicitly uses OpenSSL version 3 instead of whatever version Homebrew currently provides by default. It is a build-hardening change, not a fix for an active software bug. The change reduces the risk that a future Homebrew update to a newer or incompatible OpenSSL version silently breaks the build or changes the cryptographic behavior of the released macOS application.
No immediate user action is required. Treat this as routine build-hardening. Reviewers may want to confirm that openssl@3 remains supported by Homebrew and that the pinned version still receives security updates. Consider applying the same pinning to other platforms or workflows if they also rely on unpinned OpenSSL packages.
Security signals we found
Dependency version pinning in CI/CD workflow
Explicit OPENSSL_ROOT_DIR to avoid picking up a different OpenSSL installation
Build reproducibility / supply-chain hardening
Evidence from the diff
The GitHub Actions workflow for macOS bundles is updated to pin the OpenSSL dependency to openssl@3 and to pass OPENSSL_ROOT_DIR pointing to that specific Homebrew prefix into CMake. Previously the workflow installed the unversioned openssl formula, which on Homebrew can resolve to OpenSSL 3 today but may change in the future. Pinning ensures reproducible builds and prevents unexpected ABI/API drift from a future default OpenSSL version bump.
Changed components
.github/workflows/build.ymlmacOS bundle build jobOpenSSL dependency resolution for macOSInspect captured patch +2 / −1
### .github/workflows/build.yml
@@ -91,7 +91,7 @@ jobs:
if: matrix.arch == 'ARM'
run: sudo xcode-select --switch /Applications/Xcode_16.2.app/Contents/Developer
- name: install dependencies
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost hidapi libsodium ninja openssl pkg-config protobuf unbound zeromq aria2
+ run: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost hidapi libsodium ninja openssl@3 pkg-config protobuf unbound zeromq aria2
- name: download Qt
run: mkdir qt6 && cd qt6 && python3 ../monero-gui/.github/qt_helper.py mac_x64 desktop 6.12.0 clang_64 2db37b3a5f2da2ea0fc922e1d476b9eb326cd9ad43e539519e4281f2f9ff8888
working-directory: ../
@@ -100,6 +100,7 @@ jobs:
cmake -S . -B build -G Ninja
-D CMAKE_PREFIX_PATH="/Users/runner/work/monero-gui/qt6/"
-D CMAKE_OSX_DEPLOYMENT_TARGET="14.4"
+ -D OPENSSL_ROOT_DIR="$(brew --prefix openssl@3)"
-D ARCH=default
- name: build
run: cmake --build buildWhy this scored 17/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.