Skip to content

Commit 477b902

Browse files
1 parent 742286b commit 477b902

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/content-checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Content Checks
22
on:
3-
pull_request_target:
3+
pull_request:
44
types:
55
- opened
66
- synchronize
@@ -13,7 +13,7 @@ on:
1313
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
1414
concurrency:
1515
group: content-checks-${{ github.event_name }}-${{ github.event.pull_request.number }}
16-
cancel-in-progress: ${{ github.event_name == 'pull_request_target' }}
16+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1717
jobs:
1818
quality:
1919
name: Quality Checks
@@ -29,7 +29,7 @@ jobs:
2929
fetch-depth: 2
3030

3131
- name: Sparse checkout of content directory from fork to temp directory
32-
if: ${{ github.event_name == 'pull_request_target' }}
32+
if: ${{ github.event_name == 'pull_request' }}
3333
uses: actions/checkout@v3
3434
with:
3535
ref: ${{ github.event.pull_request.head.sha }}
@@ -39,7 +39,7 @@ jobs:
3939
fetch-depth: 1
4040

4141
- name: Move the content from temp directory to main repo's content directory
42-
if: ${{ github.event_name == 'pull_request_target' }}
42+
if: ${{ github.event_name == 'pull_request' }}
4343
run: |
4444
rm -rf content/
4545
ls -la temp_content/content/

0 commit comments

Comments
 (0)