File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -485,11 +485,14 @@ jobs:
485
485
486
486
typo-check :
487
487
name : Typo Check
488
+ # only run on pull requests because of security reasons
489
+ # we shouldn't trust external actions for builds within the repository
490
+ if : ${{ github.event_name == 'pull_request' }}
488
491
runs-on : ubuntu-latest
489
492
steps :
490
493
- uses : actions/checkout@v4
491
494
- name : Check typos
492
- uses : crate-ci/typos@master
495
+ uses : crate-ci/typos@v1.22.4
493
496
494
497
owasp-dependency-check :
495
498
name : OWASP Dependency Check
@@ -551,11 +554,19 @@ jobs:
551
554
' windows-build'
552
555
]
553
556
steps :
554
- - name : Check build-and-license-check and typo-check success
557
+ - name : Check build-and-license-check success
555
558
run : |
556
559
if [[ ! ( \
557
560
"${{ needs.build-and-license-check.result }}" == "success" \
558
- && "${{ needs.typo-check.result }}" == "success" \
561
+ ) ]]; then
562
+ echo "Required jobs haven't been completed successfully."
563
+ exit 1
564
+ fi
565
+ - name : Check typo-check success for pull requests
566
+ if : ${{ github.event_name == 'pull_request' }}
567
+ run : |
568
+ if [[ ! ( \
569
+ "${{ needs.typo-check.result }}" == "success" \
559
570
) ]]; then
560
571
echo "Required jobs haven't been completed successfully."
561
572
exit 1
You can’t perform that action at this time.
0 commit comments