Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GHA] Avoid running actions in forks - leftovers (#26791)

Alina Kladievacc4cf68e94d2
diff --git a/.github/workflows/code_style.yml b/.github/workflows/code_style.yml
index c2db68edca3..e2a8a88cfbc 100644
--- a/.github/workflows/code_style.yml
+++ b/.github/workflows/code_style.yml
@@ -10,9 +10,9 @@ permissions: read-all
jobs:
clang-format:
runs-on: ubuntu-22.04
+ if: ${{ github.repository_owner == 'openvinotoolkit' }}
permissions:
pull-requests: write
- if: ${{ github.repository_owner == 'openvinotoolkit' }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
@@ -40,6 +40,7 @@ jobs:
ShellCheck:
runs-on: ubuntu-22.04
+ if: ${{ github.repository_owner == 'openvinotoolkit' }}
permissions:
pull-requests: write
steps:
@@ -73,6 +74,7 @@ jobs:
NamingConventionCheck:
runs-on: ubuntu-22.04
+ if: ${{ github.repository_owner == 'openvinotoolkit' }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index f6464838555..c2929a093c0 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -10,6 +10,7 @@ jobs:
contents: read
pull-requests: write
runs-on: ubuntu-latest
+ if: ${{ github.repository_owner == 'openvinotoolkit' }}
steps:
- uses: akladiev/labeler@eeac5941e7fb6f980d47e038ac0665168851c874 # v4.3.1
with:
@@ -22,6 +23,7 @@ jobs:
external_pr_labeller:
name: Label External PR
runs-on: ubuntu-latest
+ if: ${{ github.repository_owner == 'openvinotoolkit' }}
steps:
- name: Checkout Labeller Script
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7