Skip to content

chore: Add ZHA and Zigbee2MQTT to bug report template lock providers #302

chore: Add ZHA and Zigbee2MQTT to bug report template lock providers

chore: Add ZHA and Zigbee2MQTT to bug report template lock providers #302

Workflow file for this run

---
# SPDX-FileCopyrightText: 2026 Andrew Grimberg <tykeal@bardicgrove.org>
# SPDX-License-Identifier: Apache-2.0
name: 'Autolabeler'
# yamllint disable-line rule:truthy
on:
pull_request:
types:
- opened
- synchronize
- reopened
pull_request_target:
types:
- opened
- synchronize
- reopened
permissions: {}
concurrency:
# yamllint disable-line rule:line-length
group: ${{ format('al-{0}-pr-{1}', github.event_name, github.event.pull_request.number) }}
cancel-in-progress: true
jobs:
autolabel:
name: 'Autolabel PR'
# Run on pull_request_target for forks, pull_request for
# same-repo PRs to prevent duplicate runs
# yamllint disable rule:line-length
if: >
(github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.fork) ||
(github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork)
# yamllint enable rule:line-length
# SECURITY: pull_request_target with write permissions is safe
# here because the autolabeler action does NOT checkout any code
# from the PR — it only reads the PR title/body via GitHub API.
permissions:
contents: read
pull-requests: write
runs-on: 'ubuntu-latest'
timeout-minutes: 3
steps:
# Harden the runner used by this workflow
# yamllint disable-line rule:line-length
- uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: 'audit'
# yamllint disable-line rule:line-length
- uses: release-drafter/release-drafter/autolabeler@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1