From 38b9e895bd6316b92e7f181808834ce759370398 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 14 Feb 2024 14:10:09 -0800 Subject: [PATCH] .github/workflows: Restrict some workflows to the official repository Prevent that the Coverity and send-email workflows fail for submitters of pull requests. Signed-off-by: Bart Van Assche --- .github/workflows/coverity.yml | 1 + .github/workflows/mail_notification.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index c6465da9c..e643a0169 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -7,6 +7,7 @@ on: jobs: coverity: + if: github.repository == 'SCST-project/scst' runs-on: ubuntu-latest steps: - name: Checkout Project diff --git a/.github/workflows/mail_notification.yml b/.github/workflows/mail_notification.yml index 9d585a231..415ac084e 100644 --- a/.github/workflows/mail_notification.yml +++ b/.github/workflows/mail_notification.yml @@ -10,6 +10,7 @@ on: jobs: send_mails: name: ${{matrix.commit.message}} + if: github.repository == 'SCST-project/scst' runs-on: ubuntu-latest strategy: max-parallel: 1