mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 05:06:13 +01:00
CI security hardening: restrict permissions in restrict-task-creation workflow (#163051)
This commit is contained in:
5
.github/workflows/restrict-task-creation.yml
vendored
5
.github/workflows/restrict-task-creation.yml
vendored
@@ -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