mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 17:49:37 +01:00
CI security hardening: restrict permissions in restrict-task-creation workflow (#163051)
This commit is contained in:
@@ -5,9 +5,14 @@ on:
|
||||
issues:
|
||||
types: [opened]
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
check-authorization:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
# Only run if this is a Task issue type (from the issue form)
|
||||
if: github.event.issue.type.name == 'Task'
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user