Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/actions/setup-compose/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Set up Compose build workaround
description: Disable Bake filesystem entitlement checks for the affected runner Compose versions.

runs:
using: composite
steps:
- name: Check Compose version
shell: bash
run: |
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
1 change: 1 addition & 0 deletions .github/workflows/dev-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
run: yarn type-check
- name: Package
run: yarn package
- uses: ./.github/actions/setup-compose
- name: Run Tests
run: yarn test-matrix --forbid-only ${{ matrix.mocha-args }}
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-docker-v29.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
sudo VERSION=29.0.0 sh get-docker.sh
sudo systemctl restart docker

- uses: ./.github/actions/setup-compose

- name: Verify Docker version, Install and Test
run: |
# Verify
Expand Down
Loading