fix: clean up reusable workflow inputs and bump action versions (INT-1582)#3
fix: clean up reusable workflow inputs and bump action versions (INT-1582)#3glaracuente wants to merge 2 commits into
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)
📝 WalkthroughWalkthroughThis pull request updates GitHub Actions workflows: lint and tf-test remove required ChangesWorkflow Updates
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
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-please.yaml:
- Around line 27-31: The create-github-app-token step (uses:
actions/create-github-app-token@..., id: generate-token) currently inherits all
installation permissions; update that step to pass explicit permission-<name>
inputs to scope the token to least privilege required by the release workflow
(for example add permission-contents: write, permission-pull-requests: write,
permission-issues: write and permission-metadata: read) so the generated token
only grants those specific rights instead of all installation permissions.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: efba5c93-3f69-4e53-891b-59a715b79a69
📒 Files selected for processing (4)
.github/workflows/lint.yaml.github/workflows/release-please.yaml.github/workflows/tf-test.yaml.github/workflows/zizmor.yaml
💤 Files with no reviewable changes (2)
- .github/workflows/zizmor.yaml
- .github/workflows/tf-test.yaml
what
head-refinput andGITHUB_TOKENsecret from workflow_call.refs/pull/{number}/mergefetch-depth: 0v3.2.0and googleapis/release-please-action tov5.0.0.GITHUB_TOKENsecret from workflow_call.why
head-refinput andGITHUB_TOKENare already available in the context of the workflow run, and there was no need to pass these inrefs/pull/{number}/mergeso callers triggering onpull_request_targetlint the feature-branch code (no-op forpull_requestcallers).fetch-depth: 0so Trunk can compute the PR diff against the base — the default shallow clone has no merge-base, and persist-credentials: false strips the token before Trunk's on-the-fly fetch can succeed.references
Summary by CodeRabbit