aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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