Commit e808b86c07 for openssl.org
commit e808b86c0793395bde58b99e1cece7d4c9a83f7f
Author: Dmitry Misharov <dmitry@openssl.org>
Date: Tue Nov 24 09:36:49 2026 +0100
.github/workflows: share repeated checkout steps via YAML anchors
Assisted-by: Claude:claude-fable-5-2
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
Reviewed-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Merge-date: Wed Nov 25 20:35:31 2026
Merged-from: https://github.com/openssl/openssl/pull/33945
diff --git a/.github/workflows/aarch64-more-cross-compiles.yml b/.github/workflows/aarch64-more-cross-compiles.yml
index 9cb5813b11..acac963542 100644
--- a/.github/workflows/aarch64-more-cross-compiles.yml
+++ b/.github/workflows/aarch64-more-cross-compiles.yml
@@ -167,7 +167,8 @@ jobs:
sudo apt-get -yq --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages install \
gcc-${{ matrix.platform.arch }} \
${{ matrix.platform.libs }}
- - uses: actions/checkout@v6
+ - &checkout
+ uses: actions/checkout@v6
with:
persist-credentials: false
ref: ${{ github.event.inputs.head_sha || github.sha }}
@@ -253,10 +254,7 @@ jobs:
if: *aarch64_requested
runs-on: ubuntu-26.04-arm
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: print tool versions
run: |
gcc --version
diff --git a/.github/workflows/avx512-sde.yml b/.github/workflows/avx512-sde.yml
index 603856b47a..f9ad380646 100644
--- a/.github/workflows/avx512-sde.yml
+++ b/.github/workflows/avx512-sde.yml
@@ -70,7 +70,8 @@ jobs:
(needs.validate-dispatch-inputs.result == 'success' || needs.validate-dispatch-inputs.result == 'skipped')
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - &checkout
+ uses: actions/checkout@v6
with:
persist-credentials: false
ref: ${{ github.event.inputs.head_sha || github.sha }}
@@ -120,10 +121,7 @@ jobs:
env:
VCVARS: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: install nasm
uses: ./.github/actions/install-nasm
diff --git a/.github/workflows/compiler-zoo.yml b/.github/workflows/compiler-zoo.yml
index 15d307ae97..f965161cd5 100644
--- a/.github/workflows/compiler-zoo.yml
+++ b/.github/workflows/compiler-zoo.yml
@@ -61,7 +61,8 @@ jobs:
gcc: [gcc-9, gcc-10, gcc-11, gcc-12, gcc-13, gcc-14]
runs-on: ubuntu-24.04
steps:
- - uses: actions/checkout@v6
+ - &checkout
+ uses: actions/checkout@v6
with:
persist-credentials: false
ref: ${{ github.event.inputs.head_sha || github.sha }}
@@ -103,10 +104,7 @@ jobs:
IMAGE: ghcr.io/openssl/openssl-vs2013:latest
VCVARS: C:\vc12\vcvars_${{ matrix.arch }}.cmd
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: pull the VS2013 toolchain image
@@ -152,10 +150,7 @@ jobs:
clang: [clang-11, clang-12, clang-13, clang-14, clang-15, clang-16, clang-17, clang-18, clang-19, clang-20, clang-21]
runs-on: ubuntu-22.04
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: install packages
run: |
set -euo pipefail
diff --git a/.github/workflows/os-zoo-rolling.yml b/.github/workflows/os-zoo-rolling.yml
index 41b9e68a9b..4528938b62 100644
--- a/.github/workflows/os-zoo-rolling.yml
+++ b/.github/workflows/os-zoo-rolling.yml
@@ -68,7 +68,8 @@ jobs:
steps:
- name: install packages
run: apk --no-cache add build-base perl linux-headers python3 ${{ matrix.cc }}
- - uses: actions/checkout@v6
+ - &checkout
+ uses: actions/checkout@v6
with:
persist-credentials: false
ref: ${{ github.event.inputs.head_sha || github.sha }}
@@ -102,10 +103,7 @@ jobs:
runs-on: ubuntu-latest
container: ${{ matrix.zoo.image }}
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: install packages
run: ${{ matrix.zoo.install }}
- name: config
diff --git a/.github/workflows/os-zoo.yml b/.github/workflows/os-zoo.yml
index e2f4c76ed9..521c34cdcf 100644
--- a/.github/workflows/os-zoo.yml
+++ b/.github/workflows/os-zoo.yml
@@ -73,7 +73,8 @@ jobs:
steps:
- name: install packages
run: apk --no-cache add build-base perl linux-headers ${{ matrix.cc }}
- - uses: actions/checkout@v6
+ - &checkout
+ uses: actions/checkout@v6
with:
persist-credentials: false
ref: ${{ github.event.inputs.head_sha || github.sha }}
@@ -138,10 +139,7 @@ jobs:
runs-on: ubuntu-latest
container: ${{ matrix.zoo.image }}
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: prepare package sources
if: matrix.zoo.setup != ''
run: ${{ matrix.zoo.setup }}
@@ -181,10 +179,7 @@ jobs:
os: [macos-15, macos-15-intel, macos-26, macos-26-intel]
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: config
@@ -213,10 +208,7 @@ jobs:
vcvars: C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\Build\vcvars64.bat
runs-on: ${{ matrix.platform.os }}
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: install nasm
@@ -254,10 +246,7 @@ jobs:
env:
VCVARS: C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\Build\vcvarsarm64.bat
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
# no nasm: VC-WIN64-ARM has no asm_arch, so Configure disables asm
@@ -299,10 +288,7 @@ jobs:
if: *upstream_or_dispatch
runs-on: ubuntu-24.04-arm
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: config
run: ./config --strict-warnings enable-fips enable-ec_nistp_64_gcc_128 enable-md2 enable-rc5 enable-trace
- name: config dump
@@ -354,10 +340,7 @@ jobs:
# On by default in gcc 14's runtime and very slow on aarch64; gcc 11 had it off.
ASAN_OPTIONS: detect_stack_use_after_return=0
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: config
run: ./config --strict-warnings ${{ matrix.config }}
- name: config dump
@@ -389,10 +372,7 @@ jobs:
if: *upstream_or_dispatch
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: run container
run: |
CONTAINER_ID=$(podman run -d -v $(pwd):/mnt -w /mnt --platform=linux/i386 docker.io/i386/debian:13 sleep infinity)
@@ -440,10 +420,7 @@ jobs:
!cancelled() &&
(needs.validate-dispatch-inputs.result == 'success' || needs.validate-dispatch-inputs.result == 'skipped')
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: config
run: ./config --strict-warnings enable-fips enable-ec_nistp_64_gcc_128 enable-md2 enable-rc5 enable-trace
- name: config dump
@@ -464,10 +441,7 @@ jobs:
# this job out of forks (a manual dispatch there would hang forever).
if: *nightly_only
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: config
run: ./config --strict-warnings enable-fips enable-md2 enable-rc5 enable-trace
- name: config dump
@@ -488,10 +462,7 @@ jobs:
# this job out of forks (a manual dispatch there would hang forever).
if: *nightly_only
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: config
run: ./config enable-fips enable-ec_nistp_64_gcc_128 enable-md2 enable-rc5 enable-trace
- name: config dump
@@ -558,10 +529,7 @@ jobs:
needs: [validate-dispatch-inputs]
if: *upstream_or_dispatch
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: config
uses: cross-platform-actions/action@82668f1fbd89d9c99487604f822cbf6716f124d3 #v1.7.0
with:
@@ -599,10 +567,7 @@ jobs:
needs: [validate-dispatch-inputs]
if: *upstream_or_dispatch
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: config
uses: cross-platform-actions/action@82668f1fbd89d9c99487604f822cbf6716f124d3 #v1.7.0
with:
diff --git a/.github/workflows/run-checker-daily.yml b/.github/workflows/run-checker-daily.yml
index 3a1cf9b4b9..0a2345bf80 100644
--- a/.github/workflows/run-checker-daily.yml
+++ b/.github/workflows/run-checker-daily.yml
@@ -175,7 +175,8 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - &checkout
+ uses: actions/checkout@v6
with:
persist-credentials: false
ref: ${{ github.event.inputs.head_sha || github.sha }}
@@ -199,10 +200,7 @@ jobs:
if: *upstream_or_dispatch
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: Install Dependencies for sctp option
@@ -247,7 +245,8 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages install brotli libbrotli1 libbrotli-dev
- - name: checkout openssl
+ - &checkout_openssl
+ name: checkout openssl
uses: actions/checkout@v6
with:
persist-credentials: false
@@ -274,11 +273,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages install zstd libzstd1 libzstd-dev
- - name: checkout openssl
- uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout_openssl
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: config
@@ -302,11 +297,7 @@ jobs:
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages install brotli libbrotli1 libbrotli-dev
sudo apt-get -yq --no-install-suggests --no-install-recommends --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages install zstd libzstd1 libzstd-dev
- - name: checkout openssl
- uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout_openssl
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: config
@@ -325,11 +316,7 @@ jobs:
if: *upstream_or_dispatch
runs-on: ubuntu-latest
steps:
- - name: checkout openssl
- uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout_openssl
- name: Adjust ASLR for sanitizer
run: |
sudo cat /proc/sys/vm/mmap_rnd_bits
@@ -356,11 +343,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages install brotli libbrotli1 libbrotli-dev
- - name: checkout openssl
- uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout_openssl
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: Adjust ASLR for sanitizer
@@ -387,11 +370,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages install zstd libzstd1 libzstd-dev
- - name: checkout openssl
- uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout_openssl
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: Adjust ASLR for sanitizer
@@ -417,10 +396,7 @@ jobs:
os: [ubuntu-latest, macos-15, macos-15-intel]
runs-on: ${{matrix.os}}
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: config
@@ -437,10 +413,7 @@ jobs:
if: *upstream_or_dispatch
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: config
@@ -459,10 +432,7 @@ jobs:
if: *upstream_or_dispatch
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: Adjust ASLR for sanitizer
@@ -488,10 +458,7 @@ jobs:
(needs.validate-dispatch-inputs.result == 'success' || needs.validate-dispatch-inputs.result == 'skipped')
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: config
run: ./config --debug --strict-warnings -DBN_DEBUG --banner=Configured -DOPENSSL_NO_SECURE_MEMORY && perl configdata.pm --dump
- name: make
@@ -515,10 +482,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 300
steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- ref: ${{ github.event.inputs.head_sha || github.sha }}
+ - *checkout
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- name: Adjust ASLR for sanitizer