DS117838 and DS173237 report published sha256 digests as secrets

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

@gfs đang làm issue này rồi.

Từ ngày 27/10/2026.

  • #797 của @copilot-swe-agent — đang mở

Đá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
56/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
security, tooling

Hướng nghiên cứu

Start by locating the definitions and tests for rules DS117838 and DS173237 in the DevSkim repository, then read how each rule identifies secrets and handles exclusions. Add coverage for the two examples in the issue and confirm both checks no longer report the published digests while still detecting secrets; the issue does not name specific files or test commands.

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

Mô tả

I run DevSkim 1.0.70 through MegaLinter 10.1.0. Two rules report published checksums as secrets.

DS117838 matches the "key" inside "keycloak" on this line, then the image digest after it:

image: registry.gitlab.com/example/keycloak@sha256:28ea761821b553939f940f81640b2c004b5a512c58d190b7b766382d6395e3dc

DS173237 reports every quoted checksum in a JSON list of files, like this one:

{ "path": "formats-reference.md", "sha256": "bf1dd3e3c71a72cc309db4fca5074abdc9618b8351ab2c72fc896f22f6457769" }

JSON has no comments, so I can't suppress these lines inline (#594). On my project that is 252 findings in two files.

A value right after @sha256:, or under a key named sha256, is a checksum, not a secret. Could both rules skip these two cases?

Ngôn ngữ chính
C#
Star
1k
Fork
133
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 microsoft/DevSkim

Tất cả issue của microsoft/DevSkim

Issue tương tự

Thêm issue về C#

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.