Skip to content

Commit cc4cf68

Browse files
authored
[GHA] Avoid running actions in forks - leftovers (openvinotoolkit#26791)
Continuation of openvinotoolkit#26749
1 parent 4bfe725 commit cc4cf68

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/code_style.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ permissions: read-all
1010
jobs:
1111
clang-format:
1212
runs-on: ubuntu-22.04
13+
if: ${{ github.repository_owner == 'openvinotoolkit' }}
1314
permissions:
1415
pull-requests: write
15-
if: ${{ github.repository_owner == 'openvinotoolkit' }}
1616
steps:
1717
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1818
with:
@@ -40,6 +40,7 @@ jobs:
4040

4141
ShellCheck:
4242
runs-on: ubuntu-22.04
43+
if: ${{ github.repository_owner == 'openvinotoolkit' }}
4344
permissions:
4445
pull-requests: write
4546
steps:
@@ -73,6 +74,7 @@ jobs:
7374
7475
NamingConventionCheck:
7576
runs-on: ubuntu-22.04
77+
if: ${{ github.repository_owner == 'openvinotoolkit' }}
7678
steps:
7779
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
7880
with:

.github/workflows/labeler.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
contents: read
1111
pull-requests: write
1212
runs-on: ubuntu-latest
13+
if: ${{ github.repository_owner == 'openvinotoolkit' }}
1314
steps:
1415
- uses: akladiev/labeler@eeac5941e7fb6f980d47e038ac0665168851c874 # v4.3.1
1516
with:
@@ -22,6 +23,7 @@ jobs:
2223
external_pr_labeller:
2324
name: Label External PR
2425
runs-on: ubuntu-latest
26+
if: ${{ github.repository_owner == 'openvinotoolkit' }}
2527
steps:
2628
- name: Checkout Labeller Script
2729
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

0 commit comments

Comments
 (0)