Skip to content

Commit c17f7de

Browse files
committed
fix
1 parent 8c81fef commit c17f7de

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

pkg/baseline/baseline.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ const DefaultBaselineFile = ".gosecretscanner-baseline.json"
1414

1515
// Entry represents a single finding in the baseline.
1616
type Entry struct {
17-
Fingerprint string `json:"fingerprint"` // Unique identifier for this finding
18-
FilePath string `json:"file"` // Relative file path
19-
LineNumber int `json:"line"` // Original line number (may drift)
20-
RuleID string `json:"rule_id"` // Rule that triggered this finding
21-
SecretHash string `json:"secret_hash"` // SHA256 of the secret value (for verification)
17+
Fingerprint string `json:"fingerprint"` // Unique identifier for this finding
18+
FilePath string `json:"file"` // Relative file path
19+
LineNumber int `json:"line"` // Original line number (may drift)
20+
RuleID string `json:"rule_id"` // Rule that triggered this finding
21+
SecretHash string `json:"secret_hash"` // SHA256 of the secret value (for verification)
2222
Reason string `json:"reason,omitempty"` // Why this was baselined (optional)
2323
}
2424

@@ -143,4 +143,3 @@ func CreateEntry(filePath string, lineNumber int, ruleID, secretValue, reason st
143143
Reason: reason,
144144
}
145145
}
146-

pkg/baseline/baseline_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,3 @@ func TestLoadInvalid(t *testing.T) {
152152
t.Error("Load should error for invalid JSON")
153153
}
154154
}
155-

pkg/config/config_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,3 @@ func TestCompiledConfig(t *testing.T) {
160160
t.Error("pattern-1 should NOT be disabled")
161161
}
162162
}
163-

0 commit comments

Comments
 (0)