Set minimum permissions for workflows
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu bằng việc xem xét các workflow trong .github/workflows, bao gồm ci-java7.yaml quanh dòng 42, và so sánh các action của chúng với tài liệu về quyền của GitHub Actions được liên kết trong issue. Xác định các quyền tối thiểu mà mỗi workflow cần, sau đó xác minh rằng các workflow sử dụng actions/checkout vẫn giữ quyền truy cập đọc cần thiết và tất cả các tệp workflow đều tuân theo hạn chế dự kiến.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Is your feature request related to a problem? Please describe.
GitHub workflows are granted high permissions by default. Permissions that allow, for example, to delete your source code and publish releases. The permissions can be exploited by malicious actions run in the workflow or malicious PRs if run on pull_request_target. This is specially important when using 3P actions such as:
https://github.com/googleapis/google-http-java-client/blob/1acedf75368f11ab03e5f84dd2c58a8a8a662d41/.github/workflows/ci-java7.yaml#L42.
Describe the solution you'd like
Set restricted permissions to run GitHub workflows or declare minimum permissions in the workflows.
e.g. permissions: contents: read for workflows that only need to do actions/checkout.
Describe alternatives you've considered
None.
Additional context
My name is Gabriela and I work on behalf of Google and the OpenSSF suggesting supply-chain security changes.
- Ngôn ngữ chính
- Java
- Star
- 1.4k
- Fork
- 474
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googleapis/google-http-java-client
-
GenericData.containsKey() returns true for unset (null) declared fields, violating Map contractĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
googleapis/google-http-java-client#2187 · 1 bình luận ·
-
Core: Validate header names and values to prevent CRLF injectionCó thể đã có người làm @insaf021 đã nhận 66 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Core: XmlPullParser processes external DTD entities (XXE) — disable FEATURE_PROCESS_DOCDECL in Xml#createParser()Có thể đã có người làm @insaf021 đã nhận 66 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Core: LowLevelHttpResponse not disconnected when HttpResponse construction throws RuntimeExceptionCó thể đã có người làm @insaf021 đã nhận 67 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
type: cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Tất cả issue của googleapis/google-http-java-client
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
bancolombia/scaffold-clean-architecture#1002 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CalendarEventAttendance/get returns eventAttendanceStatus while the doc says attendanceStatusCó thể đã có người làm @chibenwa đã nhận hôm nay. Đang mởbug claude
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
linagora/tmail-backend#2697 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/skywalking#14120 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Case-insensitive search suggestions miss items when the JVM default locale is TurkishCó thể đã có người làm @thswlsqls đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature] 关于启动游戏进度条显示的优化Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
HMCL-dev/HMCL#6943 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày