github / github/accessibility-scanner
GitHub Script action not pinned to a full-length commit SHA
- Ngôn ngữ chính
- TypeScript
- Star
- 369
- Fork
- 40
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 10
Mô tả
The `accessibility-scanner` workflow uses `actions/github-script@v8` without pinning it to a specific commit SHA. This violates security best practices and causes the pipeline to fail when the **Require actions to be pinned to a full-length commit SHA** setting is enabled.
#### **Steps to Reproduce**
1. Enable **Require actions to be pinned to a full-length commit SHA** in the repository settings.
2. Run the `accessibility-scanner` workflow.
3. Observe the failure caused by the unpinned `actions/github-script` action.
#### **Expected Behavior**
The workflow should run successfully with all actions pinned to full-length commit SHAs.
#### **Actual Behavior**
The workflow fails because `actions/github-script@v8` is not pinned to a commit SHA.
https://github.com/github/accessibility-scanner/blob/db51bb5d470a862cc027836ee1583ab9d5ae5b16/action.yml#L137
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với action.yml ở dòng 137, được đề cập trong issue, và kiểm tra việc sử dụng actions/github-script trong workflow accessibility-scanner. Cập nhật tham chiếu action thành SHA commit đầy đủ, sau đó xác minh rằng workflow đáp ứng yêu cầu pinning của repository và chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github-actions
- Lĩnh vực
- ci-cd, security
- Loại issue
- Lỗi
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 55/100