Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix provenance for binaries and generate sbom #12479

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Jan 18, 2025

What I did

Generated provenance for binaries that are pushed to GitHub Releases is overriden by the last binary when merged in release job: https://github.com/docker/compose/releases/tag/v2.32.4

image

There should be a provenance for each binary similar to buildx: https://github.com/docker/buildx/releases/tag/v0.19.3

image

SBOM generation is also not enabled, I think this is an oversight in the workflow because we have it enabled in the Dockerfile:

compose/Dockerfile

Lines 181 to 182 in 489fe9c

# enable scanning for this stage
ARG BUILDKIT_SBOM_SCAN_STAGE=true

Result: https://github.com/docker/compose/actions/runs/12843628138/job/35815820312#step:6:5

 [4.0K]  ./bin/release
├── [ 300]  LICENSE
├── [3.3K]  checksums.txt
├── [ 60M]  docker-compose-darwin-aarch64
├── [ 49K]  docker-compose-darwin-aarch64.provenance.json
├── [358K]  docker-compose-darwin-aarch64.sbom.json
├── [  96]  docker-compose-darwin-aarch64.sha256
├── [ 62M]  docker-compose-darwin-x86_64
├── [ 49K]  docker-compose-darwin-x86_64.provenance.json
├── [358K]  docker-compose-darwin-x86_64.sbom.json
├── [  95]  docker-compose-darwin-x86_64.sha256
├── [ 60M]  docker-compose-linux-aarch64
├── [ 49K]  docker-compose-linux-aarch64.provenance.json
├── [358K]  docker-compose-linux-aarch64.sbom.json
├── [  95]  docker-compose-linux-aarch64.sha256
├── [ 58M]  docker-compose-linux-armv6
├── [ 49K]  docker-compose-linux-armv6.provenance.json
├── [358K]  docker-compose-linux-armv6.sbom.json
├── [  93]  docker-compose-linux-armv6.sha256
├── [ 58M]  docker-compose-linux-armv7
├── [ 49K]  docker-compose-linux-armv7.provenance.json
├── [358K]  docker-compose-linux-armv7.sbom.json
├── [  93]  docker-compose-linux-armv7.sha256
├── [ 62M]  docker-compose-linux-ppc64le
├── [ 49K]  docker-compose-linux-ppc64le.provenance.json
├── [358K]  docker-compose-linux-ppc64le.sbom.json
├── [  95]  docker-compose-linux-ppc64le.sha256
├── [ 59M]  docker-compose-linux-riscv64
├── [ 49K]  docker-compose-linux-riscv64.provenance.json
├── [358K]  docker-compose-linux-riscv64.sbom.json
├── [  95]  docker-compose-linux-riscv64.sha256
├── [ 66M]  docker-compose-linux-s390x
├── [ 49K]  docker-compose-linux-s390x.provenance.json
├── [358K]  docker-compose-linux-s390x.sbom.json
├── [  93]  docker-compose-linux-s390x.sha256
├── [ 62M]  docker-compose-linux-x86_64
├── [ 49K]  docker-compose-linux-x86_64.provenance.json
├── [358K]  docker-compose-linux-x86_64.sbom.json
├── [  94]  docker-compose-linux-x86_64.sha256
├── [ 60M]  docker-compose-windows-aarch64.exe
├── [ 101]  docker-compose-windows-aarch64.exe.sha256
├── [ 49K]  docker-compose-windows-aarch64.provenance.json
├── [360K]  docker-compose-windows-aarch64.sbom.json
├── [ 63M]  docker-compose-windows-x86_64.exe
├── [ 100]  docker-compose-windows-x86_64.exe.sha256
├── [ 49K]  docker-compose-windows-x86_64.provenance.json
└── [360K]  docker-compose-windows-x86_64.sbom.json

@crazy-max crazy-max force-pushed the ci-fix-binary-provenance branch from e2753a8 to 5abeeb0 Compare January 18, 2025 11:33
@crazy-max crazy-max requested a review from glours January 18, 2025 12:09
@crazy-max crazy-max marked this pull request as ready for review January 18, 2025 12:10
@glours glours merged commit 433a60e into docker:main Jan 20, 2025
24 checks passed
@crazy-max crazy-max deleted the ci-fix-binary-provenance branch January 20, 2025 09:06
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Feb 13, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker/compose](https://github.com/docker/compose) | minor | `v2.32.4` -> `v2.33.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>docker/compose (docker/compose)</summary>

### [`v2.33.0`](https://github.com/docker/compose/releases/tag/v2.33.0)

[Compare Source](docker/compose@v2.32.4...v2.33.0)

#### What's Changed

> \[!IMPORTANT]
> This release introduce support for [Bake](https://docs.docker.com/build/bake/) to manage builds as an alternative to the internal buildkit client. This new feature can be enabled by setting `COMPOSE_BAKE=1` variable. Bake will become the default builder in a future release.

##### ✨ Improvements

-   let user know bake is now supported by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12524
-   support additional_context reference to another service by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12485
-   add support for BUILDKIT_PROGRESS by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12458
-   add --with-env flag to publish command by [@&#8203;glours](https://github.com/glours) in docker/compose#12482
-   Update ls --quiet help description by [@&#8203;maxproske](https://github.com/maxproske) in docker/compose#12541
-   Publish warn display env vars by [@&#8203;glours](https://github.com/glours) in docker/compose#12486

##### 🐛 Fixes

-   Fix bake support by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12507
-   Update link in stats --help output by [@&#8203;maxproske](https://github.com/maxproske) in docker/compose#12523
-   Properly handle "builtin" seccomp profile by [@&#8203;r-bk](https://github.com/r-bk) in docker/compose#12478
-   manage `watch` applied to mulitple services by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12469

##### 🔧  Internal

-   use main branch for docs upstream validation workflow by [@&#8203;crazy-max](https://github.com/crazy-max) in docker/compose#12487
-   fix provenance for binaries and generate sbom by [@&#8203;crazy-max](https://github.com/crazy-max) in docker/compose#12479
-   add codeowners file by [@&#8203;glours](https://github.com/glours) in docker/compose#12480
-   remove exit code per error type used by legacy metrics system by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12502
-   Dockerfile: update golangci-lint to v1.63.4 by [@&#8203;thaJeztah](https://github.com/thaJeztah) in docker/compose#12546
-   Full test coverage for compatibility cmd by [@&#8203;maxproske](https://github.com/maxproske) in docker/compose#12528
-   don't send raw os.Args to opentelemetry but a pseudo command line by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12530
-   add docker engine v28.x to the test-matrix by [@&#8203;thaJeztah](https://github.com/thaJeztah) in docker/compose#12539
-   enable copyloopvar linter by [@&#8203;thaJeztah](https://github.com/thaJeztah) in docker/compose#12542
-   go.mod: remove toolchain directive by [@&#8203;thaJeztah](https://github.com/thaJeztah) in docker/compose#12551

##### ⚙️ Dependencies

-   bump buildx v0.20.1 by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12488
-   bump docker to v27.5.1 by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12491
-   bump compose-go v2.4.8 by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12543
-   bump golang.org/x/sys from 0.28.0 to 0.30.0 by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#12529
-   bump github.com/moby/term v0.5.2 by [@&#8203;thaJeztah](https://github.com/thaJeztah) in docker/compose#12540
-   bump github.com/otiai10/copy from 1.14.0 to 1.14.1 by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#12493
-   bump github.com/jonboulle/clockwork from 0.4.0 to 0.5.0 by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#12430
-   bump github.com/spf13/pflag from 1.0.5 to 1.0.6 by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#12548
-   bump golang.org/x/sync from 0.10.0 to 0.11.0 by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#12547
-   bump gotest.tools/v3 from 3.5.1 to 3.5.2 by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#12549

#### New Contributors

-   [@&#8203;r-bk](https://github.com/r-bk) made their first contribution in docker/compose#12478
-   [@&#8203;maxproske](https://github.com/maxproske) made their first contribution in docker/compose#12523

**Full Changelog**: docker/compose@v2.32.4...v2.33.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjYuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants