PyGithub / PyGithub/PyGithub

Do I need to hardcode my own GPG keys for new UserGPGKey class?

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

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

Ngôn ngữ chính
Python
Star
7.8k
Fork
1.9k
Merge trung bình
17 phút
Pull request đã merge (30 ngày)
2

Mô tả

Background

I'm developing a UserGPGKey class to expose this library to GitHub's REST API endpoints for GPG keys. The UserGPG class is moduled similar to the already-existing UserKey class. The necessiary modifcations have been made to NamedUser and AuthenticatedUser in order to access GPG keys after authentication.

Problem

In the tests of UserKey, AuthenticatedUser, and NamedUser tests, there is information provived on some SSH keys which from my understanding comes from @jacquev6. Here are screenshots from the codebase showcasing what I am refering to:

tests/UserKey.py
image

tests/AuthenticatedUser.py
image

tests/NamedUser.py
image

What I'd like to know is if I'd need something similar and hardcode information from my own GPG key(s) into the testing code for UserGPGKey?

If possible, I'd like to avoid doing this for privacy reasons.
Thanks in advance for reading this rather lengthy issue! 😅

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Bắt đầu bằng cách xem xét tests/UserKey.py, tests/AuthenticatedUser.py và tests/NamedUser.py để hiểu các fixture khóa hiện có và các mẫu truy cập. Sau đó so sánh các mẫu đó với lớp UserGPGKey được đề xuất và những thay đổi đối với NamedUser và AuthenticatedUser; done phải bao gồm các bài kiểm thử phù hợp mà không yêu cầu dữ liệu khóa GPG riêng tư của contributor.

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

Đánh giá

Công nghệ
python
Lĩnh vực
api, testing
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
28/100

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.