Spaces:
Sleeping
Sleeping
Fix GitHub Actions workflows to handle SSH private repository access
Browse files- Add SSH key setup step to all workflows
- Configure Docker build to forward SSH agent
- Required for accessing private paladin repository dependency
.github/workflows/code-quality.yml
CHANGED
|
@@ -16,6 +16,11 @@ jobs:
|
|
| 16 |
- name: Checkout code
|
| 17 |
uses: actions/checkout@v4
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
- name: Set up Python
|
| 20 |
uses: actions/setup-python@v5
|
| 21 |
with:
|
|
@@ -53,6 +58,11 @@ jobs:
|
|
| 53 |
- name: Checkout code
|
| 54 |
uses: actions/checkout@v4
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
- name: Set up Python
|
| 57 |
uses: actions/setup-python@v5
|
| 58 |
with:
|
|
|
|
| 16 |
- name: Checkout code
|
| 17 |
uses: actions/checkout@v4
|
| 18 |
|
| 19 |
+
- name: Set up SSH key for private repos
|
| 20 |
+
uses: webfactory/ssh-agent@v0.9.0
|
| 21 |
+
with:
|
| 22 |
+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
| 23 |
+
|
| 24 |
- name: Set up Python
|
| 25 |
uses: actions/setup-python@v5
|
| 26 |
with:
|
|
|
|
| 58 |
- name: Checkout code
|
| 59 |
uses: actions/checkout@v4
|
| 60 |
|
| 61 |
+
- name: Set up SSH key for private repos
|
| 62 |
+
uses: webfactory/ssh-agent@v0.9.0
|
| 63 |
+
with:
|
| 64 |
+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
| 65 |
+
|
| 66 |
- name: Set up Python
|
| 67 |
uses: actions/setup-python@v5
|
| 68 |
with:
|
.github/workflows/docker.yml
CHANGED
|
@@ -25,6 +25,11 @@ jobs:
|
|
| 25 |
- name: Checkout code
|
| 26 |
uses: actions/checkout@v4
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
- name: Set up Docker Buildx
|
| 29 |
uses: docker/setup-buildx-action@v3
|
| 30 |
|
|
@@ -55,6 +60,7 @@ jobs:
|
|
| 55 |
push: ${{ github.event_name != 'pull_request' }}
|
| 56 |
tags: ${{ steps.meta.outputs.tags }}
|
| 57 |
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
| 58 |
cache-from: type=gha
|
| 59 |
cache-to: type=gha,mode=max
|
| 60 |
secret-files: |
|
|
|
|
| 25 |
- name: Checkout code
|
| 26 |
uses: actions/checkout@v4
|
| 27 |
|
| 28 |
+
- name: Set up SSH key for private repos
|
| 29 |
+
uses: webfactory/ssh-agent@v0.9.0
|
| 30 |
+
with:
|
| 31 |
+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
| 32 |
+
|
| 33 |
- name: Set up Docker Buildx
|
| 34 |
uses: docker/setup-buildx-action@v3
|
| 35 |
|
|
|
|
| 60 |
push: ${{ github.event_name != 'pull_request' }}
|
| 61 |
tags: ${{ steps.meta.outputs.tags }}
|
| 62 |
labels: ${{ steps.meta.outputs.labels }}
|
| 63 |
+
ssh: default
|
| 64 |
cache-from: type=gha
|
| 65 |
cache-to: type=gha,mode=max
|
| 66 |
secret-files: |
|
.github/workflows/tests.yml
CHANGED
|
@@ -22,6 +22,11 @@ jobs:
|
|
| 22 |
with:
|
| 23 |
fetch-depth: 0 # Full history for better coverage reports
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
- name: Set up Python ${{ matrix.python-version }}
|
| 26 |
uses: actions/setup-python@v5
|
| 27 |
with:
|
|
|
|
| 22 |
with:
|
| 23 |
fetch-depth: 0 # Full history for better coverage reports
|
| 24 |
|
| 25 |
+
- name: Set up SSH key for private repos
|
| 26 |
+
uses: webfactory/ssh-agent@v0.9.0
|
| 27 |
+
with:
|
| 28 |
+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
| 29 |
+
|
| 30 |
- name: Set up Python ${{ matrix.python-version }}
|
| 31 |
uses: actions/setup-python@v5
|
| 32 |
with:
|