fix: template injection vulns and excessive permissions in workflows#99
fix: template injection vulns and excessive permissions in workflows#99daithihearn merged 6 commits intomainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughMoved computed tag expressions into environment variables (LATEST_TAG, RELEASE_TAG) before emitting to GITHUB_OUTPUT and reduced/tightened GitHub Actions permissions by removing or scoping down id-token, packages, and pull-requests write access across multiple workflows. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Approved @Vombato but there is a conflict the needs to be resolved |
📦 Snapshot PublishedUsageAdd the GitHub Packages repository to your repositories {
maven {
url = uri("https://maven.pkg.github.com/vechain/indexer-core")
credentials {
username = findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR")
password = findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}Then use the dependency: implementation("org.vechain:indexer-core:pr.99.0c2ff79-SNAPSHOT")Note: Requires a GitHub PAT with |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/publish-test-results.yml:
- Around line 11-13: The workflow's job-level permissions block currently lists
"pages: write" and "id-token: write" but omits "contents", causing
actions/checkout@v4 to fail; update the permissions block to include "contents:
read" alongside the existing "pages" and "id-token" entries so that checkout can
read repository contents (i.e., add the "contents: read" permission key in the
same permissions mapping).
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 369b1bad-7b50-4578-9c4a-412972677b64
📒 Files selected for processing (4)
.github/workflows/on-main.yml.github/workflows/on-release.yml.github/workflows/publish-test-results.yml.github/workflows/test.yml
💤 Files with no reviewable changes (1)
- .github/workflows/test.yml
|
@daithihearn conflicts solved, I also reduced permissions to the bare needed for the |
Summary by CodeRabbit