Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Query Environment Information for Workflow Jobs

Đang mở
#119 6 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github, github-actions, python
Lĩnh vực
ci-cd, security

Hướng nghiên cứu

Bắt đầu bằng cách truy vết cách các job của workflow được biểu diễn và cách GitHub REST API được truy vấn để lấy các môi trường của repository. Được xem là hoàn tất khi mỗi job cung cấp một Environment với tên của nó và cho biết liệu các reviewer bắt buộc có xuất hiện trong các quy tắc bảo vệ của nó hay không, để các truy vấn Cypher có thể giảm false positive.

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

Mô tả

feature

Is your feature request related to a problem? Please describe.

Many workflows that would be vulnerable to pwn requests or injection use a deployment environment with required approvals to protect a job from running. Usually this will manifest as a single job that runs in an environment in the beginning, and all other jobs will depend on that check succeeding.

It is possible to query a list of environments and their rules using the REST API without authentication. By adding this feature it will be possible to update cypher queries to reduce false positives.

Describe the solution you'd like

I'd like to see an Environment graph object attached to each job. The environment object should track the environment name and if the protection_rules array contains one or more entries of the required_reviewers class.

Here is an example of a repository that uses deployment environments: https://api.github.com/repos/netflix/mantis/environments

Describe alternatives you've considered

None, this is pretty clear cut because environment gating with required approvals will require manual verification to ensure a detection is not a false positive.

Additional context

Mentioned this in an earlier issue - https://github.com/CycodeLabs/raven/issues/111, so this covers adding the environment check.

I'm actually working on implementing this and will have a PR open soon!

Ngôn ngữ chính
Python
Star
748
Fork
46
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

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 CycodeLabs/raven

Tất cả issue của CycodeLabs/raven

Issue tương tự

Thêm issue về Python

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.