Fix permissions for the lock workflow (#3982)

Unlike Core this repo has stricter default policy for actions. Explicitly
enable permissions for scope the lock workflow needs.
This commit is contained in:
Jan Čermák 2025-03-28 16:59:27 +01:00 committed by GitHub
parent 75f0936c53
commit 23d08b9cf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,11 @@ on:
schedule: schedule:
- cron: "0 * * * *" - cron: "0 * * * *"
permissions:
discussions: write
issues: write
pull-requests: write
jobs: jobs:
lock: lock:
if: github.repository_owner == 'home-assistant' if: github.repository_owner == 'home-assistant'