Files
keycloak/.github/workflows/version-compatibility-matrix.yml
dagecko 0e54bf11e4 fix: extract 12 unsafe expression(s) to env vars
Automated security fixes applied by Runner Guard (https://github.com/Vigilant-LLC/runner-guard).

Signed-off-by: Chris Nyhuis <cnyhuis@vigilantnow.com>
2026-05-21 15:32:43 +02:00

40 lines
1.2 KiB
YAML

name: Version Compatibility Matrix
# This workflow generates the version compatibility matrix for mixed-cluster tests.
# It is separated from the main CI workflow to avoid multiline secret masking issues.
# See: https://github.com/keycloak/keycloak/issues/45745
on:
workflow_call:
outputs:
matrix:
description: 'Version compatibility matrix JSON for mixed-cluster tests'
value: ${{ jobs.generate-matrix.outputs.matrix }}
permissions:
contents: read
jobs:
generate-matrix:
name: Generate Matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.version-compatibility.outputs.matrix }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Version Compatibility Matrix
id: version-compatibility
env:
GH_TOKEN: ${{ github.token }}
REF_NAME: ${{ github.ref_name }}
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
BRANCH="${{ github.base_ref }}"
else
BRANCH="${REF_NAME}"
fi
MATRIX_JSON=$(./.github/scripts/version-compatibility.sh "${BRANCH}")
echo "${MATRIX_JSON}"
echo "matrix=${MATRIX_JSON}" >> $GITHUB_OUTPUT