diff --git a/.github/actions/setup-compose/action.yml b/.github/actions/setup-compose/action.yml index 2b43a06fc..6b5c7f3fb 100644 --- a/.github/actions/setup-compose/action.yml +++ b/.github/actions/setup-compose/action.yml @@ -1,5 +1,5 @@ name: Set up Compose build workaround -description: Disable Bake filesystem entitlement checks for the affected runner Compose versions. +description: Disable Bake filesystem entitlement checks for Compose 2.38.x and 5.6.x patch releases. runs: using: composite @@ -10,9 +10,7 @@ runs: version=$(docker compose version --short) echo "Compose version: $version" # Temporary workaround for https://github.com/devcontainers/cli/issues/1320. - case "${version#v}" in - 2.38.2|5.6.0) - echo "::warning::Disabling Bake filesystem and default SSH-agent consent checks for Compose $version." - echo "BUILDX_BAKE_ENTITLEMENTS_FS=0" >> "$GITHUB_ENV" - ;; - esac + if [[ "${version#v}" =~ ^(2\.38|5\.6)\.[0-9]+$ ]]; then + echo "::warning::Disabling Bake filesystem and default SSH-agent consent checks for Compose $version." + echo "BUILDX_BAKE_ENTITLEMENTS_FS=0" >> "$GITHUB_ENV" + fi