Set explicit permissions for release publishing workflows

Đang mở
#2,496 0 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ó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
42/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, github-actions, rust
Lĩnh vực
build-system, cloud

Hướng nghiên cứu

Start with the container and crate publishing workflow files under .github/workflows, where the permissions blocks for the publishing jobs are declared or missing. Map each job's token needs (Cargo registry, Docker Hub) to the minimal scopes, documenting a consumer for each. Done when all seven flagged jobs declare explicit permissions, secret boundaries are unchanged, and the CodeQL alerts close after merge.

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

Mô tả

Continuous Integration Security task

Goal

Declare the minimum required GITHUB_TOKEN permissions for every release-publishing job currently relying on repository defaults, without changing release behavior or credential access.

Background

CodeQL reports seven missing-permission findings in the container and crate publishing workflows. The repository default is currently read-only, so the findings do not demonstrate a present write-token exploit. This is p3 release-supply-chain hardening against a future repository-default change.

Scope

  • Map each affected publishing job to its actual token requirements.
  • Add explicit minimum permissions for alerts 75, 78, 79, 80, 81, 82, and 104.
  • Preserve Cargo registry and Docker Hub publishing behavior and environment-secret boundaries.
  • Confirm the seven CodeQL alerts close after merge.

Acceptance criteria

  • All seven publishing jobs declare explicit minimum permissions.
  • Every granted permission has a documented consumer.
  • Publishing behavior and secret boundaries remain unchanged.
  • The scoped CodeQL alerts close.

Related to #2493.

Ngôn ngữ chính
Rust
Star
532
Fork
56
Merge trung bình
11 giờ 20 phút
Pull request đã merge (30 ngày)
282

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 torrust/torrust-tracker

Tất cả issue của torrust/torrust-tracker

Issue tương tự

Thêm issue về Rust

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.