Review security practices for shared workflows and organization access

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

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
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions
Lĩnh vực
ci-cd, security

Hướng nghiên cứu

Start by reviewing the repository’s shared workflow files and the referenced GitHub Actions security guidance, then compare their permissions, triggers, dependencies, and credential use against the checklist. Some checklist items require organization or downstream repository settings, so identify which safeguards can be changed here and which need external owners. Done means the applicable safeguards are reviewed and documented or implemented, with the external settings clearly identified.

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

Mô tả

As our shared workflows affect multiple packages, could we review the following safeguards? AI-assisted phishing and impersonation make strong account security increasingly important; limiting workflow permissions also helps contain the impact of a compromised account or dependency.

Suggested checklist
  • Require secure-only two-factor authentication, after notifying all affected members and collaborators. Disable SMS, including as a backup, and retain safe recovery options to reduce account-takeover risk.
  • Review organization owners and repository access. Keep elevated access limited to people who need it, reducing the impact of a compromised account.
  • Default workflow permissions to read-only, granting additional permissions only to the jobs that need them. Disable workflow approval of pull requests unless required to reduce unintended write access.
  • Protect the default branch and shared workflow changes with required review, relevant checks, and narrowly limited bypass permissions. Changes here can affect many downstream repositories.
  • Review action and reusable-workflow dependencies. Pin external dependencies to reviewed immutable revisions and automate updates; document the trade-off where callers intentionally follow @main.
  • Inventory stored credentials across repositories and environments. Confirm ownership, scope, expiration, and continued need; remove unused secrets and prefer short-lived or narrowly scoped credentials over broad personal tokens. Never share secret values during the review.
  • Keep untrusted pull-request code away from privileged jobs and secrets. Review triggers, checkout references, and shell inputs to prevent credential theft or unintended execution.
  • Add automated workflow security checks, such as actionlint and zizmor, to catch risky changes before they reach downstream packages.

Some items require organization or downstream repository settings rather than changes in this repository.

References

Please also have a look at IndrajeetPatil/workflows for inspiration and reference, particularly its usage and security guidance. Its workflows have personal-owner restrictions, so the relevant practices would need adapting for easystats rather than adopting them directly. Thanks!

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
9
Fork
4
Merge trung bình
5 giờ 7 phút
Pull request đã merge (30 ngày)
3

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 easystats/workflows

Tất cả issue của easystats/workflows

Issue tương tự

Thêm issue về DevOps

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.