diff --git a/.github/workflows/__greetings.yml b/.github/workflows/__greetings.yml index 4696c96..8771559 100644 --- a/.github/workflows/__greetings.yml +++ b/.github/workflows/__greetings.yml @@ -1,15 +1,17 @@ name: Greetings -on: # zizmor: ignore[dangerous-triggers] shared workflow handles PR metadata without checking out PR code +on: issues: types: [opened] - pull_request_target: + pull_request: + types: [opened] branches: [main] permissions: {} jobs: greetings: + if: ${{ github.event_name == 'issues' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }} uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@66882b24f9f13e45a6541896a5a7c638cb91c94c # 4.0.0 permissions: contents: read diff --git a/.github/workflows/__semantic-pull-request.yml b/.github/workflows/__semantic-pull-request.yml index 8bd4f95..fc73858 100644 --- a/.github/workflows/__semantic-pull-request.yml +++ b/.github/workflows/__semantic-pull-request.yml @@ -1,8 +1,8 @@ --- -name: "Pull Request - Semantic Lint" +name: "Pull Request - Title Validation" -on: # zizmor: ignore[dangerous-triggers] shared workflow checks out only the trusted base revision - pull_request_target: +on: + pull_request: types: - opened - edited