Skip to content

Commit a8a96cf

Browse files
committed
fix(ci): Only allow helm-docs and scb-bot workflows to run on the non-fork repo
These workflows can only run on the main repo (non-fork) as they require github secrets Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
1 parent 10f37fa commit a8a96cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/helm-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
helm-docs:
1313
runs-on: ubuntu-latest
14-
14+
if: github.repository == 'secureCodeBox/secureCodeBox'
1515
steps:
1616
- uses: actions/checkout@v2
1717
with:

.github/workflows/scb-bot.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
jobs:
66
version-compare:
77
runs-on: ubuntu-latest
8+
if: github.repository == 'secureCodeBox/secureCodeBox'
89
strategy:
910
matrix:
1011
scanner:

0 commit comments

Comments
 (0)