Skip to content

Commit 22cddd5

Browse files
committed
fix(devskim): use inline ignores for hash command patterns
Revert the MegaLinter-level DevSkim suppression and add targeted inline DevSkim ignore comments on md5sum and sha1sum permission patterns. Made-with: Cursor
1 parent d00da90 commit 22cddd5

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

.mega-linter.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,3 @@ DISABLE:
55
SARIF_REPORTER: true
66

77
LUA_LUACHECK_ARGUMENTS: "--globals vim"
8-
9-
# DevSkim flags literal md5sum/sha1sum strings in this policy data file as
10-
# banned hash algorithm usage, but these are command-permission patterns, not
11-
# cryptographic implementations.
12-
REPOSITORY_DEVSKIM_FILTER_REGEX_EXCLUDE: home/.chezmoidata/agent-permissions/00-base.yaml

home/.chezmoidata/agent-permissions/00-base.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,12 @@ agentPermissions:
183183
op: allow
184184
bashMatchMode: withArgs
185185
- kind: bash
186+
# DevSkim: ignore DS0000
186187
pattern: "md5sum"
187188
op: allow
188189
bashMatchMode: withArgs
189190
- kind: bash
191+
# DevSkim: ignore DS0000
190192
pattern: "sha1sum"
191193
op: allow
192194
bashMatchMode: withArgs

0 commit comments

Comments
 (0)