Skip to content

Commit ed7583b

Browse files
chore: github dependencies support for ssh (#219)
We are generally using ssh key for development instead of https. this will support both cases in requirements.txt and poetry Poetry example: ``` splunksdc = {git = "https://github.com/splunk/splunksdc.git", tag = "v0.1.2"} splunksdc = {git = "ssh://git@github.com/splunk/splunksdc.git", tag = "v0.1.2"} ```
1 parent 44070f0 commit ed7583b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ jobs:
440440
poetry export --without-hashes --dev -o requirements_dev.txt
441441
fi
442442
if [ ! -f requirements_dev.txt ]; then echo no requirements;exit 0 ;fi
443-
git config --global url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
443+
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
444+
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://git@github.com
444445
pip install -r requirements_dev.txt
445446
- name: Create directories
446447
run: |
@@ -489,7 +490,8 @@ jobs:
489490
poetry export --without-hashes --dev -o requirements_dev.txt
490491
fi
491492
if [ ! -f requirements_dev.txt ]; then echo no requirements;exit 0 ;fi
492-
git config --global url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
493+
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
494+
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://git@github.com
493495
pip install -r requirements_dev.txt
494496
- name: Create directories
495497
run: |
@@ -571,7 +573,8 @@ jobs:
571573
- name: Install deps
572574
if: ${{ steps.checklibs.outputs.ENABLED == 'true' }}
573575
run: |
574-
git config --global url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
576+
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
577+
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://git@github.com
575578
pip install -r requirements_dev.txt
576579
- name: Semantic Release Get Next
577580
id: semantic
@@ -703,7 +706,8 @@ jobs:
703706
restore-keys: |
704707
${{ runner.os }}-pip-python3_9
705708
- run: |
706-
git config --global url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
709+
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
710+
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://git@github.com
707711
pip install -r requirements_dev.txt
708712
- id: semantic
709713
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)