fix(ci): #912 replace hardcoded staging credentials with secrets #925

Merged
xiaoxia merged 2 commits from fix/ci-daily-check-hardcoded-creds-912 into develop 2026-07-26 14:09:55 +08:00
Owner

问题

daily-check.yml中存在多处硬编码的staging测试账号密码(Ying1234 / 18314979086@163.com),存在安全风险。

修复

  • 移除5处硬编码密码和邮箱
  • 改用已有的 secrets.STAGING_TEST_USER 和 secrets.STAGING_TEST_PASSWORD
  • 涉及3个step:staging-api-smoke / perf check / perf report
  • 使用 LOGIN_BODY 变量统一管理JSON请求体,避免复杂引号嵌套

关 #912

## 问题 daily-check.yml中存在多处硬编码的staging测试账号密码(Ying1234 / 18314979086@163.com),存在安全风险。 ## 修复 - 移除5处硬编码密码和邮箱 - 改用已有的 `secrets.STAGING_TEST_USER` 和 `secrets.STAGING_TEST_PASSWORD` - 涉及3个step:staging-api-smoke / perf check / perf report - 使用 `LOGIN_BODY` 变量统一管理JSON请求体,避免复杂引号嵌套 关 #912
xiaoxia added 1 commit 2026-07-26 12:57:43 +08:00
fix(ci): #912 replace hardcoded staging creds with secrets
AI Code Review / AI Code Review (pull_request) Failing after 0s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 27s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m15s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 53s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m13s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 17s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 20s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 28s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m7s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 3m54s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 2m33s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m20s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 5m4s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m15s
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1250h14m17s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1250h15m44s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1250h15m46s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1250h21m39s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1250h21m47s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1250h27m8s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 1250h27m14s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1250h27m10s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1250h28m13s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1250h28m15s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1251h0m52s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 1250h48m20s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1250h59m50s
eb42aee5a8
xiaoxia added 1 commit 2026-07-26 13:15:36 +08:00
Merge branch 'develop' of https://git.xiaoxiajianji.com/xiaoxia/xiaoxia-saas into fix/ci-daily-check-hardcoded-creds-912
AI Code Review / AI Code Review (pull_request) Failing after 0s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 6s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 47s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 44s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 28s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 26s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 7s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 3m9s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 2m24s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 35s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m2s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m55s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 4m55s
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 47m29s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Has been cancelled
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 15s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1249h29m48s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 1249h34m22s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1249h34m26s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1249h34m28s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1249h54m21s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1249h54m27s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1249h54m29s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 1249h54m31s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1250h6m47s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1250h6m51s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1250h7m2s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1250h27m3s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1250h39m27s
033ec8dee3

🚀 预览环境已部署

项目 详情
PR号 #925
预览链接 https://pr-925.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #925 | | 预览链接 | [https://pr-925.preview.xiaoxiajianji.com](https://pr-925.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
xiaoxia merged commit 38e40d727b into develop 2026-07-26 14:09:55 +08:00

🗑️ 预览环境已清理

PR #925 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #925 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Sign in to join this conversation.