Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
open-pull-requests-limit: 10

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
open-pull-requests-limit: 10
23 changes: 23 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Dependabot auto-merge

on: pull_request

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow triggers on every pull_request to any branch. Other workflows in this repo scope PR workflows to main; consider switching to on: pull_request: branches: [main] (and using the expanded on: mapping style) to avoid unnecessary runs and keep workflow triggers consistent across the repo.

Suggested change
on: pull_request
on:
pull_request:
branches:
- main

Copilot uses AI. Check for mistakes.

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
Comment on lines +6 to +11

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

permissions are set to contents: write and pull-requests: write at the workflow level, which grants a write-scoped GITHUB_TOKEN for every PR event (even though the job later gates on github.actor). To follow least-privilege, set the workflow-level permissions to read-only (or omit them) and move the write permissions down to the jobs.dependabot.permissions (or the specific step) so they’re only granted when needed.

Suggested change
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
contents: read
pull-requests: read
jobs:
dependabot:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

Copilot uses AI. Check for mistakes.
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2

- name: Enable auto-merge for patch and minor updates
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading