Repository navigation
meta: use Sequelize Bot for drafting PRs - #18201
Conversation
📝 WalkthroughWalkthroughA GitHub Actions workflow step is added to generate a GitHub App installation token using a provided app ID and private key from secrets, and this token is subsequently passed to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/stale.yml (1)
20-20: Pinactions/create-github-app-tokento a full commit SHA.Line 20 uses a floating action reference (
@v3), while other actions in this workflow (actions/staleon lines 29, 42, 57 andsequelize/draft-unfinished-prson line 25) are pinned to immutable commit SHAs. Pin this action for supply-chain safety and consistency.Suggested change
- name: Generate Sequelize Bot Token id: generate-token - uses: actions/create-github-app-token@v3 + uses: actions/create-github-app-token@<FULL_40_CHAR_SHA> # v3🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/stale.yml at line 20, The workflow currently references a floating action tag "uses: actions/create-github-app-token@v3" which should be pinned to an immutable commit SHA for supply-chain safety; locate the "uses: actions/create-github-app-token@v3" entry and replace the tag with the corresponding full commit SHA (the same style used for other actions in this file, e.g., how "actions/stale" and "sequelize/draft-unfinished-prs" are pinned), updating the line to "uses: actions/create-github-app-token@<full-commit-sha>" and commit the change.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/stale.yml:
- Line 20: The workflow currently references a floating action tag "uses:
actions/create-github-app-token@v3" which should be pinned to an immutable
commit SHA for supply-chain safety; locate the "uses:
actions/create-github-app-token@v3" entry and replace the tag with the
corresponding full commit SHA (the same style used for other actions in this
file, e.g., how "actions/stale" and "sequelize/draft-unfinished-prs" are
pinned), updating the line to "uses:
actions/create-github-app-token@<full-commit-sha>" and commit the change.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 47797525-c485-4681-a063-c25b788d221c
📒 Files selected for processing (1)
.github/workflows/stale.yml
* main: (200 commits) meta: update actions/upload-artifact action to v7.0.1 (sequelize#18212) meta: update sequelize AUTHORS (sequelize#18208) feat(cli): add migration generate, run, status & undo (sequelize#18193) feat(core): Drop the ability to specify the dialect as a string (sequelize#18204) feat: update some dialect adapters (sequelize#18189) feat(postgres): replace pg-hstore with inline hstore parser (sequelize#18151) feat(core): add `sql.random`, improve `Order` typing (sequelize#18203) meta: use Sequelize Bot for drafting PRs (sequelize#18201) meta: automatically mark unfinished PRs as draft (sequelize#18197) meta: update dependency @oclif/test to v4.1.18 (sequelize#18198) fix(core): replace @typeparam with @template in JSDoc (sequelize#18094) feat(core): Add support for UUID v7 (sequelize#17832) meta: update sequelize AUTHORS (sequelize#18190) meta: update dependency @oclif/plugin-help to ^6.2.43 (sequelize#18195) meta: update dependency esbuild to v0.28.0 (sequelize#18192) meta: update dependency @oclif/plugin-help to ^6.2.42 (sequelize#18191) meta: update dependency @oclif/core to ^4.10.5 (sequelize#18187) meta: update sequelize AUTHORS (sequelize#18158) feat: add Node 24 support, drop Node 18 (sequelize#18185) feat(core): add support for readonly attribute arrays (sequelize#18186) ...
Pull Request Checklist
Description of Changes
Trying to mark a pull request as draft using the default GITHUB_TOKEN does not work. GitHub responds with
Resource not accessible by integrationBy using the Sequelize Bot instead, I'm hoping the restriction can be bypassed
List of Breaking Changes
Summary by CodeRabbit