-
Notifications
You must be signed in to change notification settings - Fork 0
CantonNode get contract id #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Use PAT_TOKEN || github.token to avoid 'token required' error when PAT_TOKEN is unavailable (Dependabot PRs don't have access to secrets) - Skip lint fix commit/push for Dependabot PRs (can't push anyway) Co-authored-by: hardlydiff <hardlydiff@gmail.com>
|
Cursor Agent can help with this pull request. Just |
|
Claude finished @HardlyDifficult's task —— View job PR Review Complete ✅Summary: This PR successfully addresses Dependabot CI failures with appropriate security-conscious solutions. Review Feedback✅ Excellent Changes
📋 Code Quality Assessment
🔒 Security Analysis
🐛 Potential Issues
🧪 Test Coverage
💡 Minor Suggestions
Overall Assessment: This is a well-thought-out fix that properly handles GitHub's security model for Dependabot PRs. The changes are minimal, targeted, and follow security best practices. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON. A Cloud Agent has been kicked off to fix the reported issue.
The condition for skipping lint fix commits on Dependabot PRs used github.actor, which represents who triggered the workflow. When a human manually re-runs a Dependabot PR workflow, github.actor becomes that human's username, causing the push step to run and fail. Using github.event.pull_request.user.login correctly identifies Dependabot PRs regardless of who triggered the workflow.
|
Bugbot Autofix prepared fixes for 1 of the 1 bugs found in the latest run.
|
|
Claude finished @HardlyDifficult's task —— View job PR Review Complete ✅
SummaryThis PR addresses Dependabot CI failures with two targeted fixes to Review Feedback✅ Excellent Changes
🐛 Confirmed Issue (Already Identified by Cursor Bugbot)Critical: The condition currently uses 📋 Code Quality Assessment
🔒 Security Analysis
⚡ Performance Considerations
🧪 Test Coverage Implications
💡 Minor Suggestions
🎯 Overall AssessmentThis is a well-crafted fix that:
The changes are minimal, targeted, and demonstrate good understanding of GitHub's security constraints. No additional changes are needed. |
Fix CI workflow failures for Dependabot PRs by providing a token fallback and skipping lint fix pushes.
The CI workflow was failing for Dependabot PRs because
secrets.PAT_TOKENis not available to them (due to GitHub security restrictions), causing theactions/checkoutstep to error. Additionally, Dependabot cannot push lint fixes back to its own branches, making the push step redundant and problematic.Note
Low Risk
Workflow-only changes that affect CI checkout credentials and conditional lint-fix pushes; low blast radius but could change PR-time behavior for non-Dependabot runs if misconfigured.
Overview
Fixes CN-Quickstart CI failures on Dependabot PRs by making
actions/checkoutfall back togithub.tokenwhensecrets.PAT_TOKENis unavailable.Also skips the “Commit and Push Lint Fixes” step for Dependabot-authored pull requests, avoiding attempts to push to Dependabot branches.
Written by Cursor Bugbot for commit f390536. This will update automatically on new commits. Configure here.