Skip to content

Commit 2e19d3d

Browse files
committed
fix: Completely disable submodules in all GitHub Actions workflows
- Set submodules: false in all checkout steps - Remove all submodule initialization steps - Workflows will work without submodules (templates/wordlists not required for build)
1 parent 60c3cf9 commit 2e19d3d

2 files changed

Lines changed: 3 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ jobs:
1515
with:
1616
submodules: false
1717
fetch-depth: 0
18-
19-
- name: Initialize submodules (optional)
20-
continue-on-error: true
21-
run: |
22-
git submodule sync --recursive || true
23-
git submodule update --init --recursive --force || echo "Warning: Submodules are optional, continuing without them"
2418

2519
- name: Set up Go
2620
uses: actions/setup-go@v5
@@ -59,6 +53,8 @@ jobs:
5953
steps:
6054
- name: Checkout
6155
uses: actions/checkout@v4
56+
with:
57+
submodules: false
6258

6359
- name: Run Gosec Security Scanner
6460
uses: securego/gosec@master

.github/workflows/release.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,8 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323
with:
24-
submodules: true
24+
submodules: false
2525
fetch-depth: 0
26-
27-
- name: Update submodules (with error handling)
28-
run: |
29-
git submodule sync --recursive || true
30-
git submodule update --init --recursive --force || echo "Warning: Some submodules failed to update"
3126

3227
- name: Set up Go
3328
uses: actions/setup-go@v5
@@ -106,12 +101,6 @@ jobs:
106101
with:
107102
submodules: false
108103
fetch-depth: 0
109-
110-
- name: Initialize submodules (optional)
111-
continue-on-error: true
112-
run: |
113-
git submodule sync --recursive || true
114-
git submodule update --init --recursive --force || echo "Warning: Submodules are optional, continuing without them"
115104

116105
- name: Set up Docker Buildx
117106
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)