With --fetch-remote, a pinned SHA that isn't a commit of the action fails

Đang mở
#582 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
1-2 ngày
Mức phù hợp với người mới
75/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, github, python
Lĩnh vực
devtools, testing

Hướng nghiên cứu

Read the action-pinning code and the remote-read handling used with --fetch-remote, then inspect the tests for action pinning and unreachable hosts. Add coverage for a fake SHA that fails with --fetch-remote, passes without it, and remains unknown when the host cannot be reached. Done means all three cases behave as described and name the action on failure.

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

Mô tả

Problem

#503 refuses SHAs that are all one digit or a repeated pattern. Any other made-up 40-hex string still passes action-pinning. Nothing in the pinning code uses --fetch-remote.

Expected

  • With --fetch-remote, a SHA that isn't a commit of the action's repository fails, naming the action.
  • When the host can't be asked, the pin is unknown, as for other remote reads.
  • Without --fetch-remote, nothing changes.

Done when

A random fake SHA fails with --fetch-remote and passes without it, with tests for both and for an unreachable host.

Split from #480. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Ngôn ngữ chính
Python
Star
4
Fork
1
Merge trung bình
6 giờ 31 phút
Pull request đã merge (30 ngày)
238

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 cpp-best-practices/project_validator

Tất cả issue của cpp-best-practices/project_validator

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.