From 0ce5b01a475697fc5c5794ce1b6ab3216999638b Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 17 Jan 2025 14:09:32 -0500 Subject: OK --- .github/actions/sshfs/action.yml | 15 ++------------- .github/workflows/pipeline_run.yml | 4 ++-- 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 -- cgit