mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-02-01 20:10:35 +01:00
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:
parent
48fd05453d
commit
ce0bbd8a50
4
.github/workflows/check_locales.yml
vendored
4
.github/workflows/check_locales.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user