Skip to content

Commit f9a4a46

Browse files
authored
Merge branch 'main' into auto/update-cagent-action
Signed-off-by: Derek Misler <[email protected]>
2 parents 5fcf059 + baaaaa3 commit f9a4a46

82 files changed

Lines changed: 2134 additions & 631 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ offer a paid security bounty program at this time.
3737

3838
## Supported Versions
3939

40-
This project docs not provide long-term supported versions, and only the current
40+
This project does not provide long-term supported versions, and only the current
4141
release and `main` branch are actively maintained. Docker Compose v1, and the
4242
corresponding [v1 branch](https://github.com/docker/compose/tree/v1) reached
4343
EOL and are no longer supported.

.github/workflows/ci.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ jobs:
3535
steps:
3636
-
3737
name: Checkout
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3939
-
4040
name: Set up Docker Buildx
41-
uses: docker/setup-buildx-action@v3
41+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
4242
-
4343
name: Run
4444
run: |
4545
make ${{ matrix.target }}
4646
4747
binary:
48-
uses: docker/github-builder/.github/workflows/[email protected]
48+
uses: docker/github-builder/.github/workflows/bake.yml@70313223e2665c3211b454b3fea6534624e78d64 # v1.4.0
4949
permissions:
5050
contents: read # same as global permission
5151
id-token: write # for signing attestation(s) with GitHub OIDC Token
@@ -67,7 +67,7 @@ jobs:
6767
steps:
6868
-
6969
name: Download artifacts
70-
uses: actions/download-artifact@v7
70+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
7171
with:
7272
path: /tmp/compose-output
7373
name: ${{ needs.binary.outputs.artifact-name }}
@@ -103,15 +103,15 @@ jobs:
103103
done
104104
-
105105
name: Upload artifacts
106-
uses: actions/upload-artifact@v6
106+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
107107
with:
108108
name: release
109109
path: ./bin/release/*
110110
if-no-files-found: error
111111

112112
bin-image-test:
113113
if: github.event_name == 'pull_request'
114-
uses: docker/github-builder/.github/workflows/[email protected]
114+
uses: docker/github-builder/.github/workflows/bake.yml@70313223e2665c3211b454b3fea6534624e78d64 # v1.4.0
115115
with:
116116
runner: amd64
117117
target: image-cross
@@ -132,25 +132,25 @@ jobs:
132132
steps:
133133
-
134134
name: Set up Docker Buildx
135-
uses: docker/setup-buildx-action@v3
135+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
136136
-
137137
name: Test
138-
uses: docker/bake-action@v6
138+
uses: docker/bake-action@82490499d2e5613fcead7e128237ef0b0ea210f7 # v7
139139
with:
140140
targets: test
141141
set: |
142142
*.cache-from=type=gha,scope=test
143143
*.cache-to=type=gha,scope=test
144144
-
145145
name: Gather coverage data
146-
uses: actions/upload-artifact@v4
146+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
147147
with:
148148
name: coverage-data-unit
149149
path: bin/coverage/unit/
150150
if-no-files-found: error
151151
-
152152
name: Unit Test Summary
153-
uses: test-summary/action@v2
153+
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
154154
with:
155155
paths: bin/coverage/unit/report.xml
156156
if: always()
@@ -185,7 +185,7 @@ jobs:
185185
echo "MODE_ENGINE_PAIR=${mode}-${engine}" >> $GITHUB_ENV
186186
187187
- name: Checkout
188-
uses: actions/checkout@v4
188+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
189189

190190
- name: Install Docker ${{ matrix.engine }}
191191
run: |
@@ -199,15 +199,15 @@ jobs:
199199
run: docker --version
200200

201201
- name: Set up Docker Buildx
202-
uses: docker/setup-buildx-action@v3
202+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
203203

204204
- name: Set up Docker Model
205205
run: |
206206
sudo apt-get install docker-model-plugin
207207
docker model version
208208
209209
- name: Set up Go
210-
uses: actions/setup-go@v6
210+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
211211
with:
212212
go-version-file: '.go-version'
213213
check-latest: true
@@ -217,7 +217,7 @@ jobs:
217217
run: make example-provider
218218

219219
- name: Build
220-
uses: docker/bake-action@v6
220+
uses: docker/bake-action@82490499d2e5613fcead7e128237ef0b0ea210f7 # v7
221221
with:
222222
source: .
223223
targets: binary-with-coverage
@@ -230,7 +230,7 @@ jobs:
230230

231231
- name: Setup tmate session
232232
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
233-
uses: mxschmitt/action-tmate@8b4e4ac71822ed7e0ad5fb3d1c33483e9e8fb270 # v3.11
233+
uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 # v3.23
234234
with:
235235
limit-access-to-actor: true
236236
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -244,7 +244,7 @@ jobs:
244244
245245
- name: Gather coverage data
246246
if: ${{ matrix.mode == 'plugin' }}
247-
uses: actions/upload-artifact@v4
247+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
248248
with:
249249
name: coverage-data-e2e-${{ env.MODE_ENGINE_PAIR }}
250250
path: bin/coverage/e2e/
@@ -258,7 +258,7 @@ jobs:
258258
make e2e-compose-standalone
259259
260260
- name: e2e Test Summary
261-
uses: test-summary/action@v2
261+
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
262262
with:
263263
paths: /tmp/report/report.xml
264264
if: always()
@@ -271,20 +271,20 @@ jobs:
271271
steps:
272272
# codecov won't process the report without the source code available
273273
- name: Checkout
274-
uses: actions/checkout@v4
274+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
275275
- name: Set up Go
276-
uses: actions/setup-go@v6
276+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
277277
with:
278278
go-version-file: '.go-version'
279279
check-latest: true
280280
- name: Download unit test coverage
281-
uses: actions/download-artifact@v4
281+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
282282
with:
283283
name: coverage-data-unit
284284
path: coverage/unit
285285
merge-multiple: true
286286
- name: Download E2E test coverage
287-
uses: actions/download-artifact@v4
287+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
288288
with:
289289
pattern: coverage-data-e2e-*
290290
path: coverage/e2e
@@ -293,13 +293,13 @@ jobs:
293293
run: |
294294
go tool covdata textfmt -i=./coverage/unit,./coverage/e2e -o ./coverage.txt
295295
- name: Store coverage report in GitHub Actions
296-
uses: actions/upload-artifact@v4
296+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
297297
with:
298298
name: go-covdata-txt
299299
path: ./coverage.txt
300300
if-no-files-found: error
301301
- name: Upload coverage to Codecov
302-
uses: codecov/codecov-action@v5
302+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
303303
with:
304304
files: ./coverage.txt
305305

@@ -312,10 +312,10 @@ jobs:
312312
steps:
313313
-
314314
name: Checkout
315-
uses: actions/checkout@v4
315+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
316316
-
317317
name: Download artifacts
318-
uses: actions/download-artifact@v7
318+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
319319
with:
320320
path: ./bin/release
321321
name: release
@@ -330,7 +330,7 @@ jobs:
330330
-
331331
name: GitHub Release
332332
if: startsWith(github.ref, 'refs/tags/v')
333-
uses: ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37 # v1.10.0
333+
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
334334
with:
335335
artifacts: ./bin/release/*
336336
generateReleaseNotes: true

.github/workflows/docs-upstream.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ jobs:
3434
steps:
3535
-
3636
name: Checkout
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3838
-
3939
name: Upload reference YAML docs
40-
uses: actions/upload-artifact@v4
40+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
4141
with:
4242
name: docs-yaml
4343
path: docs/reference
4444
retention-days: 1
4545

4646
validate:
47-
uses: docker/docs/.github/workflows/validate-upstream.yml@main
47+
uses: docker/docs/.github/workflows/validate-upstream.yml@464a44a6e72b37cf1755968477e242a5e5f6ef7d # main 2026-03-24
4848
needs:
4949
- docs-yaml
5050
with:

.github/workflows/merge.yml

Lines changed: 29 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -18,62 +18,6 @@ env:
1818
REPO_SLUG: "docker/compose-bin"
1919

2020
jobs:
21-
e2e:
22-
name: Build and test
23-
runs-on: ${{ matrix.os }}
24-
timeout-minutes: 15
25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
os: [desktop-windows, desktop-macos, desktop-m1]
29-
# mode: [plugin, standalone]
30-
mode: [plugin]
31-
env:
32-
GO111MODULE: "on"
33-
steps:
34-
- uses: actions/checkout@v4
35-
36-
- uses: actions/setup-go@v6
37-
with:
38-
go-version-file: '.go-version'
39-
cache: true
40-
check-latest: true
41-
42-
- name: List Docker resources on machine
43-
run: |
44-
docker ps --all
45-
docker volume ls
46-
docker network ls
47-
docker image ls
48-
- name: Remove Docker resources on machine
49-
continue-on-error: true
50-
run: |
51-
docker kill $(docker ps -q)
52-
docker rm -f $(docker ps -aq)
53-
docker volume rm -f $(docker volume ls -q)
54-
docker ps --all
55-
56-
- name: Unit tests
57-
run: make test
58-
59-
- name: Build binaries
60-
run: |
61-
make
62-
- name: Check arch of go compose binary
63-
run: |
64-
file ./bin/build/docker-compose
65-
if: ${{ !contains(matrix.os, 'desktop-windows') }}
66-
-
67-
name: Test plugin mode
68-
if: ${{ matrix.mode == 'plugin' }}
69-
run: |
70-
make e2e-compose
71-
-
72-
name: Test standalone mode
73-
if: ${{ matrix.mode == 'standalone' }}
74-
run: |
75-
make e2e-compose-standalone
76-
7721
bin-image-prepare:
7822
runs-on: ubuntu-24.04
7923
outputs:
@@ -83,7 +27,7 @@ jobs:
8327
- run: echo "Exposing env vars for reusable workflow"
8428

8529
bin-image:
86-
uses: docker/github-builder/.github/workflows/[email protected]
30+
uses: docker/github-builder/.github/workflows/bake.yml@70313223e2665c3211b454b3fea6534624e78d64 # v1.4.0
8731
needs:
8832
- bin-image-prepare
8933
permissions:
@@ -110,14 +54,40 @@ jobs:
11054
username: ${{ secrets.DOCKERPUBLICBOT_USERNAME }}
11155
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
11256
57+
module-image:
58+
uses: docker/github-builder/.github/workflows/bake.yml@70313223e2665c3211b454b3fea6534624e78d64 # v1.4.0
59+
permissions:
60+
contents: read # same as global permission
61+
id-token: write # for signing attestation(s) with GitHub OIDC Token
62+
with:
63+
runner: amd64
64+
target: image-module-cross
65+
cache: true
66+
cache-scope: module-image
67+
output: image
68+
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
69+
sbom: true
70+
set-meta-labels: true
71+
meta-images: |
72+
docker/compose-desktop-module
73+
meta-tags: |
74+
type=ref,event=branch
75+
type=ref,event=tag
76+
meta-bake-target: meta-helper
77+
secrets:
78+
registry-auths: |
79+
- registry: docker.io
80+
username: ${{ secrets.DOCKERPUBLICBOT_USERNAME }}
81+
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
82+
11383
desktop-edge-test:
11484
runs-on: ubuntu-latest
11585
needs: bin-image
11686
steps:
11787
-
11888
name: Generate Token
11989
id: generate_token
120-
uses: actions/create-github-app-token@v1
90+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
12191
with:
12292
app-id: ${{ vars.DOCKERDESKTOP_APP_ID }}
12393
private-key: ${{ secrets.DOCKERDESKTOP_APP_PRIVATEKEY }}
@@ -126,7 +96,7 @@ jobs:
12696
${{ secrets.DOCKERDESKTOP_REPO }}
12797
-
12898
name: Trigger Docker Desktop e2e with edge version
129-
uses: actions/github-script@v7
99+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
130100
with:
131101
github-token: ${{ steps.generate_token.outputs.token }}
132102
script: |

.github/workflows/pr-review.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: PR Review
2-
32
on:
43
pull_request:
54
types: [opened, ready_for_review]
65
issue_comment:
76
types: [created]
8-
pull_request_review_comment:
7+
pull_request_review_comment: # Captures feedback on review comments for learning
98
types: [created]
9+
pull_request: # Triggers auto-review on PR open (same-repo branches only; fork PRs use /review)
10+
types: [ready_for_review, opened]
1011

1112
jobs:
1213
review:

0 commit comments

Comments
 (0)