feat(tests): Decode base64 ssh keys
This commit is contained in:
6
.github/workflows/build-and-test.yml
vendored
6
.github/workflows/build-and-test.yml
vendored
@@ -122,11 +122,13 @@ jobs:
|
|||||||
- name: Execute gitfs tests
|
- name: Execute gitfs tests
|
||||||
env:
|
env:
|
||||||
GITFS_KEYS_DIR: tests/gitfs/data/keys/gitfs
|
GITFS_KEYS_DIR: tests/gitfs/data/keys/gitfs
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.TESTS_REPO_PRIVATE_KEY }}
|
||||||
|
SSH_PUBLIC_KEY: ${{ secrets.TESTS_REPO_PUBLIC_KEY }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "${GITFS_KEYS_DIR}"
|
mkdir -p "${GITFS_KEYS_DIR}"
|
||||||
echo "${{ secrets.TESTS_REPO_PRIVATE_KEY }}" > "${GITFS_KEYS_DIR}"/gitfs_ssh
|
echo "${SSH_PRIVATE_KEY}" | base64 -d > "${GITFS_KEYS_DIR}"/gitfs_ssh
|
||||||
chmod 600 "${GITFS_KEYS_DIR}"/gitfs_ssh
|
chmod 600 "${GITFS_KEYS_DIR}"/gitfs_ssh
|
||||||
echo "${{ secrets.TESTS_REPO_PUBLIC_KEY }}" > "${GITFS_KEYS_DIR}"/gitfs_ssh.pub
|
echo "${SSH_PUBLIC_KEY}" | base64 -d > "${GITFS_KEYS_DIR}"/gitfs_ssh.pub
|
||||||
chmod 644 "${GITFS_KEYS_DIR}"/gitfs_ssh.pub
|
chmod 644 "${GITFS_KEYS_DIR}"/gitfs_ssh.pub
|
||||||
tests/gitfs/test.sh
|
tests/gitfs/test.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user