Skip to content

fix(deps): update dependency vite to ^8.3.1 #3640

fix(deps): update dependency vite to ^8.3.1

fix(deps): update dependency vite to ^8.3.1 #3640

name: Auto-approve Renovate PRs

Check warning on line 1 in .github/workflows/renovate-auto-approve.yml

View workflow run for this annotation

GitHub Actions / Auto-approve Renovate PRs

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
jobs:
auto-approve:
runs-on: ubuntu-latest
if: |
github.event.pull_request.head.repo.full_name == github.repository &&
startsWith(github.event.pull_request.head.ref, 'renovate/') &&
!contains(github.event.pull_request.labels.*.name, 'needs-review')
steps:
- name: Check PR labels
id: check-labels
run: |
# Auto-approve if PR has safe labels
LABELS='${{ toJSON(github.event.pull_request.labels.*.name) }}'
# Skip if requires manual review
if echo "$LABELS" | grep -q "needs-review"; then
echo "skip=true" >> $GITHUB_OUTPUT
exit 0
fi
# Skip if major update or breaking change
if echo "$LABELS" | grep -q "major-update"; then
echo "skip=true" >> $GITHUB_OUTPUT
exit 0
fi
if echo "$LABELS" | grep -q "breaking-change"; then
echo "skip=true" >> $GITHUB_OUTPUT
exit 0
fi
echo "skip=false" >> $GITHUB_OUTPUT
- name: Wait for required checks to pass
if: steps.check-labels.outputs.skip != 'true'
uses: lewagon/wait-on-check-action@369769072fe522a3a8a85c03c96af1e5242a1994 # v1.9.1
with:
ref: ${{ github.event.pull_request.head.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
running-workflow-name: 'auto-approve'
# Include "skipped" so conditionally-run jobs (e.g. claude-review,
# publish-preview) don't block auto-approval when they don't execute
# on Renovate PRs.
allowed-conclusions: success,skipped
- name: Auto-approve Renovate PR
if: steps.check-labels.outputs.skip != 'true'
uses: hmarr/auto-approve-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}