Skip to content

Commit dce756e

Browse files
committed
fix(ci): replace privileged pull request triggers
1 parent 65939e7 commit dce756e

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎.github/workflows/__greetings.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
name: Greetings
22

3-
on: # zizmor: ignore[dangerous-triggers] shared workflow handles PR metadata without checking out PR code
3+
on:
44
issues:
55
types: [opened]
6-
pull_request_target:
6+
pull_request:
7+
types: [opened]
78
branches: [main]
89

910
permissions: {}
1011

1112
jobs:
1213
greetings:
14+
if: ${{ github.event_name == 'issues' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }}
1315
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@66882b24f9f13e45a6541896a5a7c638cb91c94c # 4.0.0
1416
permissions:
1517
contents: read

‎.github/workflows/__semantic-pull-request.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
name: "Pull Request - Semantic Lint"
2+
name: "Pull Request - Title Validation"
33

4-
on: # zizmor: ignore[dangerous-triggers] shared workflow checks out only the trusted base revision
5-
pull_request_target:
4+
on:
5+
pull_request:
66
types:
77
- opened
88
- edited

0 commit comments

Comments
 (0)