From 59e03a8dd5bb824c95b20c836ab8767c3239ca0e Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Tue, 10 Nov 2026 23:10:51 +0100 Subject: [PATCH] fix(ci): replace privileged pull request triggers --- .github/workflows/__greetings.yml | 6 ++++-- .github/workflows/__semantic-pull-request.yml | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) 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