Skip to content

High performance self-hosted photo and video management solution.

ci: fix permissions when pr-label-validation runs from fork (#12093)

Zack Pollarde705831e67ff
diff --git a/.github/workflows/pr-label-validation.yml b/.github/workflows/pr-label-validation.yml
index 510995aa54..1557b3d15c 100644
--- a/.github/workflows/pr-label-validation.yml
+++ b/.github/workflows/pr-label-validation.yml
@@ -1,12 +1,15 @@
name: PR Label Validation
on:
- pull_request:
+ pull_request_target:
types: [opened, labeled, unlabeled, synchronize]
jobs:
validate-release-label:
runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: read
steps:
- name: Require PR to have a changelog label
uses: mheap/github-action-required-labels@v5