Skip to content

Commit 463e829

Browse files
committed
fix: set SSH key permissions in GitHub Actions workflows
- Add step to set correct permissions (0600) on SSH private key file - Git checkout doesn't preserve file permissions, causing SSH authentication failures - Apply fix to both test-e2e-config.yml and test-e2e.yml workflows - Resolves 'UNPROTECTED PRIVATE KEY FILE' error in GitHub runners
1 parent 6ae4c36 commit 463e829

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/test-e2e-config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ jobs:
5252
ansible --version
5353
cargo --version
5454
55+
- name: Set SSH key permissions
56+
run: |
57+
# SSH requires private key files to have restrictive permissions (0600)
58+
# Git checkout doesn't preserve file permissions, so we need to set them manually
59+
chmod 600 fixtures/testing_rsa
60+
ls -la fixtures/testing_rsa
61+
5562
- name: Build E2E configuration tests binary
5663
run: |
5764
cargo build --bin e2e-config-tests --release

.github/workflows/test-e2e.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ jobs:
5151
ansible --version
5252
cargo --version
5353
54+
- name: Set SSH key permissions
55+
run: |
56+
# SSH requires private key files to have restrictive permissions (0600)
57+
# Git checkout doesn't preserve file permissions, so we need to set them manually
58+
chmod 600 fixtures/testing_rsa
59+
ls -la fixtures/testing_rsa
60+
5461
- name: Build E2E tests binary
5562
run: |
5663
cargo build --bin e2e-tests --release

0 commit comments

Comments
 (0)