Skip to content

Commit 31b7695

Browse files
committed
fix: remove SSH key requirements for public repository submodules
- Convert submodule URL from SSH to HTTPS access - Remove SSH key input from setup-submodules GitHub Action - Simplify CI/CD workflow by removing SSH key parameters - Add changeset for patch version bumps Fixes Dependabot CI failures caused by missing SSH private key secrets. Dependabot PRs can now run successfully without repository secrets access.
1 parent d74d003 commit 31b7695

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
"@1fe/server": patch
3+
"@1fe/shell": patch
4+
"@1fe/cli": patch
5+
"@1fe/create-1fe-app": patch
6+
---
7+
8+
Remove SSH key requirements for submodules since repositories are now public
9+
10+
Fixed Dependabot CI failures by eliminating SSH key dependencies for accessing submodules:
11+
12+
- Converted submodule URL from SSH (`git@github.com:`) to HTTPS (`https://github.com/`)
13+
- Removed SSH key input requirement from setup-submodules GitHub Action
14+
- Simplified CI/CD workflow by removing SSH key parameters
15+
- All submodule operations now work with public repository access
16+
17+
This resolves the "ssh-private-key argument is empty" error that was causing Dependabot PRs to fail in CI builds. Dependabot PRs can now run successfully without requiring repository secrets access.

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
- uses: ./.github/workflows/steps/setup-node
4141

4242
- uses: ./.github/workflows/steps/setup-submodules
43-
with:
44-
submodule-ssh-private-key: ${{ secrets.SUBMODULE_SSH_PRIVATE_KEY }}
4543

4644
- name: Build the project
4745
run: yarn build
@@ -67,8 +65,6 @@ jobs:
6765
- uses: ./.github/workflows/steps/setup-node
6866

6967
- uses: ./.github/workflows/steps/setup-submodules
70-
with:
71-
submodule-ssh-private-key: ${{ secrets.SUBMODULE_SSH_PRIVATE_KEY }}
7268
self-ssh-private-key: ${{ secrets.SELF_SSH_PRIVATE_KEY }}
7369

7470
- name: Lint the project
@@ -86,8 +82,6 @@ jobs:
8682
- uses: ./.github/workflows/steps/setup-node
8783

8884
- uses: ./.github/workflows/steps/setup-submodules
89-
with:
90-
submodule-ssh-private-key: ${{ secrets.SUBMODULE_SSH_PRIVATE_KEY }}
9185
self-ssh-private-key: ${{ secrets.SELF_SSH_PRIVATE_KEY }}
9286

9387
- name: Run unit tests
@@ -107,8 +101,6 @@ jobs:
107101
- uses: ./.github/workflows/steps/setup-node
108102

109103
- uses: ./.github/workflows/steps/setup-submodules
110-
with:
111-
submodule-ssh-private-key: ${{ secrets.SUBMODULE_SSH_PRIVATE_KEY }}
112104
self-ssh-private-key: ${{ secrets.SELF_SSH_PRIVATE_KEY }}
113105

114106
- name: Restore build artifacts
@@ -169,8 +161,6 @@ jobs:
169161
- uses: ./.github/workflows/steps/setup-node
170162

171163
- uses: ./.github/workflows/steps/setup-submodules
172-
with:
173-
submodule-ssh-private-key: ${{ secrets.SUBMODULE_SSH_PRIVATE_KEY }}
174164
self-ssh-private-key: ${{ secrets.SELF_SSH_PRIVATE_KEY }}
175165

176166
- name: Restore build artifacts

.github/workflows/steps/setup-submodules/action.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
name: Setup Submodules
22
description: Set up Git submodules for the project
33

4-
inputs:
5-
submodule-ssh-private-key:
6-
description: SSH private key for accessing submodules
7-
required: true
8-
94
runs:
105
using: 'composite'
116
steps:
127
- name: Mark workspace as safe
138
shell: bash
149
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
1510

16-
# TODO #61 - this action goes away when our repos become public.
17-
- name: Set up SSH for submodules and yarn
18-
uses: webfactory/ssh-agent@v0.9.1
19-
with:
20-
ssh-private-key: |
21-
${{ inputs.submodule-ssh-private-key }}
22-
2311
- name: Initialize submodules
2412
shell: bash
2513
run: git submodule update --init --recursive --remote # always make sure to work on latest submodule commits

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "apps/starter-app"]
22
path = apps/starter-app
3-
url = git@github.com:docusign/1fe-starter-app.git
3+
url = https://github.com/docusign/1fe-starter-app.git
44
ignore = dirty

0 commit comments

Comments
 (0)