-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Kansas1295 patch 2 #5947
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
Kansas1295 patch 2 #5947
Conversation
|
WalkthroughIntroduces two GitHub Actions workflows. 1) .github/workflows/codeql.yml adds CodeQL analysis triggered on push and pull_request to master and a weekly cron. It runs a matrix for javascript-typescript, python, and ruby with build-mode none, sets permissions, conditionally handles manual builds, and executes init and analyze steps. 2) .github/workflows/npm-publish-github-packages.yml triggers on release creation, with a build job (Node 16: checkout, npm ci, npm test) and a publish job (uses GITHUB_TOKEN, configures npm.pkg.github.com, runs npm ci and npm publish). Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (5)
.github/workflows/npm-publish-github-packages.yml (3)
6-9: Guard against accidental pre-releases and only publish on “published” releases.Prevents publishing on draft/pre-release and aligns with common release flows.
on: release: - types: [created] + types: [published] @@ - publish-gpr: + publish-gpr: + if: ${{ github.event.release.prerelease == false }} needs: buildAlso applies to: 21-23
15-19: Enable npm cache to speed up CI.Small perf win; no behavior change.
- - uses: actions/setup-node@v4 + - uses: actions/setup-node@v4 with: - node-version: 22.x + node-version: 22.x + cache: 'npm' @@ - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v4 with: - node-version: 22.x + node-version: 22.x + cache: 'npm'Also applies to: 29-31
6-10: Optional: add concurrency to avoid duplicate publishes on re-runs.Prevents multiple publishes for the same tag.
on: release: types: [published] +concurrency: + group: npm-publish-${{ github.ref }} + cancel-in-progress: false.github/workflows/codeql.yml (2)
46-53: Trim language matrix to what the repo actually uses to cut minutes.If this repo has JS/TS scripts but no Python/Ruby, reduce to javascript-typescript only.
matrix: - include: - - language: javascript-typescript - build-mode: none - - language: python - build-mode: none - - language: ruby - build-mode: none + include: + - language: javascript-typescript + build-mode: none
32-41: Tighten permissions (drop what’s not needed).Unless you fetch private CodeQL packs, packages: read and actions: read are unnecessary.
permissions: # required for all workflows security-events: write - - # required to fetch internal or private CodeQL packs - packages: read - - # only required for workflows in private repositories - actions: read contents: read
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/codeql.yml(1 hunks).github/workflows/npm-publish-github-packages.yml(1 hunks)
🧰 Additional context used
🪛 GitHub Check: lint
.github/workflows/npm-publish-github-packages.yml
[failure] 29-29:
the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
[failure] 28-28:
the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
[failure] 15-15:
the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
[failure] 14-14:
the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
🪛 GitHub Actions: lint workflows
.github/workflows/npm-publish-github-packages.yml
[error] 14-14: The runner of "actions/checkout@v3" action is too old to run on GitHub Actions. Update the action's version to fix this issue [action].
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: halmos
- GitHub Check: slither
- GitHub Check: coverage
- GitHub Check: tests-foundry
- GitHub Check: tests-upgradeable
- GitHub Check: tests
Fixes #????
PR Checklist
npx changeset add)