Switch workflow trigger to pull_request event

Changed the GitHub Actions workflow to use the 'pull_request' event instead of 'pull_request_target'. Updated the event check and trigger to improve security and ensure the workflow runs only for pull requests.
This commit is contained in:
Ludy87 2025-10-28 08:15:43 +01:00
parent 48fd05453d
commit ce0bbd8a50
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -1,7 +1,7 @@
name: Check Localization Files on PR
on:
pull_request_target:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "frontend/public/locales/*-*/translation.json"
@ -23,7 +23,7 @@ permissions:
jobs:
check-files:
if: github.event_name == 'pull_request_target'
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
issues: write # Allow posting comments on issues/PRs