aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-01-17 14:09:32 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-01-17 14:09:32 -0500
commit0ce5b01a475697fc5c5794ce1b6ab3216999638b (patch)
treeaaa1af3f04bae3aa45675cda310dfefb526f2295
parent204aa7650ebf851f11d48ade0c846079aa88c966 (diff)
downloadghasandbox-0ce5b01a475697fc5c5794ce1b6ab3216999638b.tar.gz
OK
-rw-r--r--.github/actions/sshfs/action.yml15
-rw-r--r--.github/workflows/pipeline_run.yml4
2 files changed, 4 insertions, 15 deletions
diff --git a/.github/actions/sshfs/action.yml b/.github/actions/sshfs/action.yml
index f3cf957..5f94f95 100644
--- a/.github/actions/sshfs/action.yml
+++ b/.github/actions/sshfs/action.yml
@@ -32,16 +32,6 @@ inputs:
runs:
using: "composite"
steps:
- - name: Mask inputs
- run: |
- echo "::add-mask::$SSHFS_USER"
- echo "::add-mask::$SSHFS_PASS"
- env:
- SSHFS_USER: ${{ inputs.user }}
- SSHFS_PASS: ${{ inputs.password }}
- shell: bash
-
-
- name: Install SSHFS
run: |
sudo apt update
@@ -58,8 +48,7 @@ runs:
sudo mkdir -p "$local_dir"
sudo sshfs \
-o StrictHostKeyChecking=no,password_stdin,allow_other,default_permissions \
- $SSHFS_USER@${{ inputs.remote_host}}:${{ inputs.remote_dir }} \
+ ${{ inputs.user }}@${{ inputs.remote_host}}:${{ inputs.remote_dir }} \
"$local_dir" \
- <<< "$SSHFS_PASS"
-
+ <<< "${{ inputs.password }}"
shell: bash
diff --git a/.github/workflows/pipeline_run.yml b/.github/workflows/pipeline_run.yml
index bc5abb6..4a27849 100644
--- a/.github/workflows/pipeline_run.yml
+++ b/.github/workflows/pipeline_run.yml
@@ -64,8 +64,8 @@ jobs:
- name: Mount data area
uses: ./.github/actions/sshfs
with:
- user: abcd
- password: efghijk
+ user: ${{ secrets.SVC_SSHFS_USER }}
+ password: ${{ secrets.SVC_SSHFS_PASS }}
remote_host: example.tld
remote_dir: /data
local_dir: /mydata