Skip to content

Commit 059f763

Browse files
committed
fix: narrow qwen gitleaks allowlist and linux keychain placeholder
1 parent c98236c commit 059f763

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/.gitleaks.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title = "OpenClawKit gitleaks overrides"
2+
3+
[extend]
4+
useDefault = true
5+
6+
[allowlist]
7+
description = "Ignore Qwen OAuth reference values and test placeholders"
8+
stopwords = [
9+
"f0304373b74a44d2b584a3fb70ca9e56",
10+
"qwen-oauth-token",
11+
"fresh-qwen-access",
12+
"fresh-qwen-refresh",
13+
]

.github/workflows/security.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ jobs:
2323

2424
- name: Run gitleaks
2525
uses: gitleaks/gitleaks-action@v2
26+
env:
27+
GITLEAKS_CONFIG: .github/.gitleaks.toml

Sources/OpenClawCore/CredentialStore.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public actor KeychainCredentialStore: CredentialStore {
257257
}
258258
}
259259
#else
260-
/// Non-Apple placeholder that preserves API shape when Security is unavailable.
260+
/// Non-Apple placeholder when Security is unavailable.
261261
public actor KeychainCredentialStore: CredentialStore {
262262
/// Creates a placeholder keychain store.
263263
/// - Parameters:
@@ -267,7 +267,7 @@ public actor KeychainCredentialStore: CredentialStore {
267267
public init(
268268
service _: String = "io.marcodotio.openclawkit.credentials",
269269
accessGroup _: String? = nil,
270-
accessibility _: CFString = "kSecAttrAccessibleWhenUnlockedThisDeviceOnly" as CFString
270+
accessibility _: String = "kSecAttrAccessibleWhenUnlockedThisDeviceOnly"
271271
) {}
272272

273273
public func saveSecret(_: String, for _: String) async throws {

0 commit comments

Comments
 (0)