fix(security): address OpenClaw CodeQL alerts

This commit is contained in:
Vincent Koc
2026-05-28 11:34:32 +02:00
parent 7275304793
commit b008989bef
2 changed files with 2 additions and 0 deletions

View File

@@ -225,6 +225,7 @@ jobs:
- name: Checkout harness ref
uses: actions/checkout@v6
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
fetch-depth: 0

View File

@@ -119,6 +119,7 @@ function buildLegacyOAuthSecretKey(seed: string): Buffer {
// Legacy #79006 compatibility: existing sidecars were encrypted with this
// SHA-256 key derivation, so changing it would strand affected users.
// codeql[js/insufficient-password-hash]
// lgtm[js/insufficient-password-hash]
return createHash("sha256").update(`openclaw:auth-profile-oauth:${seed}`).digest();
}