Skip to content

fix back release.yml to old version - #16160

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
Haruko386:test
Jun 17, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
Haruko386:test

Conversation

@Haruko386

Copy link
Copy Markdown
Member

What problem does this PR solve?

As title

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 17, 2026
@Haruko386 Haruko386 added ci Continue Integration and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jun 17, 2026
@Haruko386
Haruko386 marked this pull request as draft June 17, 2026 11:50
@Haruko386
Haruko386 marked this pull request as ready for review June 17, 2026 11:50
@coderabbitai

coderabbitai Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The release workflow's push.tags trigger is narrowed to v*.*.* only, the actions/setup-go step is removed, RELEASE_TAG and PRERELEASE are now exported to GITHUB_ENV, and the entire Go CLI binary build-and-upload block is replaced with a single softprops/action-gh-release@v2 step.

Changes

Release Workflow Simplification

Layer / File(s) Summary
Tag trigger narrowing and Go toolchain removal
.github/workflows/release.yml
push.tags filter reduced to v*.*.* only, removing the nightly entry. The actions/setup-go@v5 step is deleted from the release job.
Env exports and release action replacement
.github/workflows/release.yml
RELEASE_TAG and PRERELEASE are explicitly written to GITHUB_ENV. The previous Go CLI binary build and multi-asset upload block (~89 lines) is replaced with a single softprops/action-gh-release@v2 step that reads release_body.md.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 Hop, hop, away goes the nightly tag,
No more Go builds stuffed in a bag.
One tidy action to publish the release,
Less YAML clutter brings the rabbit peace.
Clean workflows make this bunny glad! 🎉

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is largely incomplete, with the author referring to 'As title' instead of providing substantive context about what problem is being solved or why the changes are necessary. Provide a detailed explanation of the problem being solved, the rationale for removing the Go toolchain setup, and how the new GitHub Release action simplifies the workflow.
Title check ❓ Inconclusive The title 'fix back release.yml to old version' is vague and fails to convey what specific issue was fixed or what the actual changes accomplish. Revise the title to be more descriptive, such as 'Revert release.yml to previous version' or specify the actual changes, like 'Simplify release workflow by removing Go setup step and using gh-release action'.
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 17, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 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/release.yml:
- Line 77: In the GitHub Actions workflow file, the softprops/action-gh-release
action is referenced using a version tag which poses a supply-chain security
risk. Replace the version tag `@v2` with the pinned commit hash
`@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65` in the uses statement for the
softprops/action-gh-release action to ensure that only the specific, reviewed
commit is executed in the release workflow.
🪄 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: 18eb6f13-824f-4d02-b820-48ab0ccbd59c

📥 Commits

Reviewing files that changed from the base of the PR and between c1c79c2 and 53aa199.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

- name: Upload Go CLI release assets
- name: Create or overwrite a release
# https://github.com/actions/upload-release-asset has been replaced by https://github.com/softprops/action-gh-release
uses: softprops/action-gh-release@v2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Get the latest commit SHA for softprops/action-gh-release v2 tag
gh api repos/softprops/action-gh-release/git/ref/tags/v2 --jq '.object.sha'

Repository: infiniflow/ragflow

Length of output: 103


Pin action to a specific commit hash for supply-chain security.

Using @v2 allows the upstream repository to push arbitrary code that would execute in your release workflow (which has contents: write permission). Replace with the pinned commit SHA: 3bb12739c298aeb8a4eeaf626c5b8d85266b0e65

🧰 Tools
🪛 zizmor (1.25.2)

[error] 77-77: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)


[info] 77-77: action functionality is already included by the runner (superfluous-actions): use gh release in a script step

(superfluous-actions)

🤖 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/release.yml at line 77, In the GitHub Actions workflow
file, the softprops/action-gh-release action is referenced using a version tag
which poses a supply-chain security risk. Replace the version tag `@v2` with the
pinned commit hash `@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65` in the uses
statement for the softprops/action-gh-release action to ensure that only the
specific, reviewed commit is executed in the release workflow.

Source: Linters/SAST tools

@Haruko386 Haruko386 self-assigned this Jun 17, 2026
@Haruko386 Haruko386 changed the title Update release.yml fix back release.yml to old version Jun 17, 2026
@wangq8
wangq8 merged commit a3e3bdd into infiniflow:main Jun 17, 2026
1 check passed
@Haruko386
Haruko386 deleted the test branch June 30, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants