Restore has no nuget.config, base images float, and publish ships an image it did not test

Đang mở
#3,312 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, docker, github-actions
Lĩnh vực
ci-cd, devops, release

Hướng nghiên cứu

Start with the named nuget.config, Dockerfiles, and .github/workflows/publish.yml steps, then review the linked work in #3274 for the digest update proposals. Trace how restore sources, base image digests, smoke testing, and version and channel tags flow through publish. Done means all four acceptance checks pass, including that failed NuGet pushes leave the channel tag unchanged.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:build security type:chore

Problem

  1. There is no nuget.config. Restore uses whatever sources the machine has, with no package source mapping. The generated configs in eng/fresh-machine.ps1:720-731 and templates/test-templates.sh:41-56 have one.
  2. Dockerfile base images float. src/FluentCMS.Host/Dockerfile:1,7,51 and templates/fluentcms/Dockerfile:1,7,20 use tags, while the compose and test images are pinned by digest.
  3. Publish ships an image it did not test. .github/workflows/publish.yml:254 builds without pushing, :356-358 builds again and pushes, and the Compose smoke test builds a third. A rerun overwrites the :version tag with a different digest.
  4. The channel tag moves before NuGet succeeds. The image, with :latest or :preview, is pushed before the NuGet push; a failed push leaves the channel pointing at a version with no packages.

Proposal

  • A root nuget.config with <clear/>, nuget.org and a * mapping.
  • Pin the base images by digest.
  • Build once, smoke-test that digest, then tag it with docker buildx imagetools create.
  • Push :version first and move the channel tag as the last step.

Done together with #3274, so the pinned digests get update proposals.

Acceptance

  • Restore uses only the sources of the nuget.config in the repository
  • Every FROM names a digest
  • The published image digest is the one the smoke test ran
  • A failed NuGet push leaves the channel tag where it was

Found in the code review of 17 Nov 2026.

Ngôn ngữ chính
C#
Star
567
Fork
107
Merge trung bình
1 giờ 19 phút
Pull request đã merge (30 ngày)
353

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fluentcms/FluentCMS

Tất cả issue của fluentcms/FluentCMS

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.