Repository navigation
fix back release.yml to old version - #16160
Conversation
📝 WalkthroughWalkthroughThe release workflow's ChangesRelease Workflow Simplification
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ 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. Comment |
There was a problem hiding this comment.
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
📒 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 |
There was a problem hiding this comment.
🧩 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
What problem does this PR solve?
As title
Type of change