mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 16:08:37 +00:00
fix(security): address OpenClaw CodeQL alerts
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user