Conversation
Master 강제 병합
*Total -- 18,938.58kb -> 15,073.44kb (20.41%) /public/images/activity/buildwithai.png -- 1,096.15kb -> 327.24kb (70.15%) /public/icons/logo/chatgpt.png -- 66.55kb -> 34.74kb (47.8%) /public/images/homecoming/main_img.png -- 2,315.78kb -> 1,459.04kb (37%) /public/images/homecoming/bg.png -- 749.01kb -> 612.02kb (18.29%) /public/icons/logo/django.png -- 23.86kb -> 19.84kb (16.83%) /public/images/activity/seminar_bg.png -- 14,648.43kb -> 12,584.85kb (14.09%) /public/icons/logo/figma.png -- 38.80kb -> 35.71kb (7.97%) Signed-off-by: ImgBotApp <[email protected]>
fix(homecoming): typo 수정
[ImgBot] Optimize images
Added GOOGLE_MAPS_API_KEY to environment variables for develop and main branches.
fix(homecoming): 디버깅을 위한 코드 추가
|
|
||
| console.log( | ||
| "MAPS KEY PREFIX:", | ||
| process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY?.slice(0, 10) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To address this logging of sensitive information, all code that logs (or otherwise exposes) any part of the NEXT_PUBLIC_GOOGLE_MAPS_API_KEY variable should be removed, especially the console statement on line 227. Simply remove the console.log block (lines 225-228) from the HomecomingMap function in src/app/homecoming/page.jsx. No imports, method replacements, or variable substitutions are required—just deleting the logging code is sufficient. This change will prevent the accidental or intentional logging of any part of the sensitive API key.
| @@ -222,11 +222,8 @@ | ||
| googleMapsApiKey: process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY, id: 'homecoming-map-script', | ||
| }); | ||
|
|
||
| console.log( | ||
| "MAPS KEY PREFIX:", | ||
| process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY?.slice(0, 10) | ||
| ); | ||
|
|
||
|
|
||
| const center = {lat: 37.388493, lng: 126.639989}; | ||
|
|
||
| if (loadError) { |
#️⃣ Related Issue
📝 PR Description
Screenshots (선택)
💬 Reviewer Request (선택)