Skip to content

build(deps-dev): bump mermaid from 11.17.2 to 12.0.0 #9522

build(deps-dev): bump mermaid from 11.17.2 to 12.0.0

build(deps-dev): bump mermaid from 11.17.2 to 12.0.0 #9522

Workflow file for this run

name: "Pull Request Automatic Labeler"
on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
# Set default permissions to read-only
permissions: read-all
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
labeler:
name: Label Pull Request
runs-on: ubuntu-26.04
# Explicit cap (default is 360 min). Labeling a PR is a single API call;
# 5 min is generous and bounds runaway transient failures.
timeout-minutes: 5
# Minimal permissions for label management (least privilege)
permissions:
contents: read # Required to check out the code
pull-requests: write # Required to apply labels to PRs
issues: read # Required to read existing labels
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 1
- name: Check if labels exist
id: check-labels
run: |
echo "Checking if required labels exist..."
missing_labels=()
# Key labels that should exist
key_labels=("infrastructure" "documentation" "security" "testing" "bug" "feature" "enhancement" "news" "mcp-integration")
for label in "${key_labels[@]}"; do
if ! gh label list --json name --jq '.[].name' | grep -Fx "$label" > /dev/null; then
missing_labels+=("$label")
fi
done
if [ ${#missing_labels[@]} -gt 0 ]; then
echo "⚠️ Missing labels: ${missing_labels[*]}"
echo "missing_labels=true" >> $GITHUB_OUTPUT
echo "Run the 'Setup Repository Labels' workflow first to create all required labels."
else
echo "✅ All key labels exist"
echo "missing_labels=false" >> $GITHUB_OUTPUT
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Apply PR Labels
uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: false # Don't sync labels to avoid permission issues
configuration-path: .github/labeler.yml
dot: true # Enable dotfiles processing
continue-on-error: true # Continue even if some labels can't be created
- name: Label application status
run: |
if [ "${{ steps.check-labels.outputs.missing_labels }}" = "true" ]; then
echo "⚠️ Some labels could not be applied because they don't exist yet."
echo "📝 To fix this:"
echo " 1. Go to Actions → Setup Repository Labels"
echo " 2. Click 'Run workflow'"
echo " 3. Wait for completion"
echo " 4. Re-run this labeler workflow"
else
echo "✅ Labeler completed successfully"
fi