DS117838 and DS173237 report published sha256 digests as secrets

Open
#794 0 comments 1 reaction 2 assignees View on GitHub

@gfs is already working on this.

Since Oct 27, 2026.

  • #797 by @copilot-swe-agent — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
56/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
security, tooling

Research direction

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.

Written by the indexing model from the issue text.

Description

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?

Dominant language
C#
Stars
1k
Forks
135
Avg merge
15h 14m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/DevSkim

All issues in microsoft/DevSkim

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.