Repository navigation
CI test add token - #17260
CI test add token#17260myf-bee wants to merge 3 commits into
Conversation
📝 WalkthroughWalkthroughThe nightly Infinity and Elasticsearch builds now pass ChangesAuthenticated nightly builds
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/sep-tests.yml:
- Around line 346-351: Remove all raw GITEE_TOKEN value logging and duplicate
debug lines at .github/workflows/sep-tests.yml:346-351 and
.github/workflows/sep-tests.yml:930-935; retain only non-sensitive diagnostics
such as token length if still needed, and ensure no command prints the token
itself.
In @.github/workflows/tests.yml:
- Around line 226-229: Ensure the temporary Gitee token file is removed even
when Docker builds fail by installing an EXIT cleanup trap immediately after
each mktemp assignment. Apply this change at .github/workflows/tests.yml lines
226-229 and 674-677, and .github/workflows/sep-tests.yml lines 352-360 and
936-944; retain the existing explicit cleanup where present.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 25dd9181-0e9b-4ae9-993a-9e57f5c78767
📒 Files selected for processing (3)
.github/workflows/sep-tests.yml.github/workflows/tests.ymlDockerfile
| echo "DEBUG gitee token length: ${#GITEE_TOKEN}" | ||
| echo "DEBUG gitee token value: ${GITEE_TOKEN}" | ||
| echo "DEBUG gitee token length: ${#GITEE_TOKEN}" | ||
| echo "DEBUG gitee token value: ${GITEE_TOKEN}" | ||
| echo "DEBUG gitee token length: ${#GITEE_TOKEN}" | ||
| echo "DEBUG gitee token value: ${GITEE_TOKEN}" |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Remove raw token logging. These commands send the Gitee PAT to CI logs; log redaction is not a security boundary. Remove the value and duplicate debug lines.
.github/workflows/sep-tests.yml#L346-L351: remove theGITEE_TOKENvalue logs..github/workflows/sep-tests.yml#L930-L935: remove theGITEE_TOKENvalue logs.
📍 Affects 1 file
.github/workflows/sep-tests.yml#L346-L351(this comment).github/workflows/sep-tests.yml#L930-L935
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/sep-tests.yml around lines 346 - 351, Remove all raw
GITEE_TOKEN value logging and duplicate debug lines at
.github/workflows/sep-tests.yml:346-351 and
.github/workflows/sep-tests.yml:930-935; retain only non-sensitive diagnostics
such as token length if still needed, and ensure no command prints the token
itself.
| _gitee_secret=$(mktemp) | ||
| printf '%s' "${GITEE_TOKEN}" > "${_gitee_secret}" | ||
| sudo DOCKER_BUILDKIT=1 docker build --secret id=gitee_token,src="${_gitee_secret}" --build-arg NEED_MIRROR=1 --build-arg HTTPS_PROXY=${HTTPS_PROXY} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile -t ${RAGFLOW_IMAGE} . | ||
| rm -f "${_gitee_secret}" |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Clean up the token file on build failure. A failing docker build triggers set -e before rm -f, leaving the PAT on the self-hosted runner. Install an EXIT trap immediately after mktemp.
.github/workflows/tests.yml#L226-L229: add anEXITcleanup trap for_gitee_secret..github/workflows/tests.yml#L674-L677: add the same cleanup trap..github/workflows/sep-tests.yml#L352-L360: add the same cleanup trap..github/workflows/sep-tests.yml#L936-L944: add the same cleanup trap.
📍 Affects 2 files
.github/workflows/tests.yml#L226-L229(this comment).github/workflows/tests.yml#L674-L677.github/workflows/sep-tests.yml#L352-L360.github/workflows/sep-tests.yml#L936-L944
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/tests.yml around lines 226 - 229, Ensure the temporary
Gitee token file is removed even when Docker builds fail by installing an EXIT
cleanup trap immediately after each mktemp assignment. Apply this change at
.github/workflows/tests.yml lines 226-229 and 674-677, and
.github/workflows/sep-tests.yml lines 352-360 and 936-944; retain the existing
explicit cleanup where present.
Summary
CI test add token