Skip to content

Commit b0ab1ee

Browse files
committed
[ci] Generate per-run SSH key in datakit-smoke workflow
Mirror the canary-ferry pattern: generate a fresh SSH key per run so gcloud has a key to consume if SSH is needed (e.g. for future failure diagnostics).
1 parent cc5ca6f commit b0ab1ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/marin-datakit-smoke.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ jobs:
5252
with:
5353
project_id: ${{ secrets.GCP_PROJECT_ID }}
5454

55+
- name: Generate SSH key
56+
run: |
57+
mkdir -p ~/.ssh
58+
ssh-keygen -t rsa -b 4096 -f ~/.ssh/google_compute_engine -N "" -q -C "gha-${{ github.run_id }}-${{ github.run_attempt }}"
59+
chmod 600 ~/.ssh/google_compute_engine
60+
5561
- name: Submit datakit smoke ferry
5662
id: submit
5763
shell: bash -l {0}

0 commit comments

Comments
 (0)