Skip to content

Commit

Permalink
Merge pull request #11 from 1Password/eddy/fix-injection
Browse files Browse the repository at this point in the history
Improve the way input is processed to avoid command injection
  • Loading branch information
edif2008 authored May 18, 2022
2 parents e28960d + a5debe1 commit d50df7c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ inputs:
default: false
runs:
using: composite
steps:
- run: |
export INPUT_UNSET_PREVIOUS=${{ inputs.unset-previous }}
steps:
- shell: bash
env:
INPUT_UNSET_PREVIOUS: ${{ inputs.unset-previous }}
run: |
${{ github.action_path }}/entrypoint.sh
shell: bash
11 changes: 6 additions & 5 deletions configure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ inputs:
description: Token to authenticate to your 1Password Connect instance
runs:
using: composite
steps:
- run: |
export INPUT_CONNECT_HOST=${{ inputs.connect-host }}
export INPUT_CONNECT_TOKEN=${{ inputs.connect-token }}
steps:
- shell: bash
env:
INPUT_CONNECT_HOST: ${{ inputs.connect-host }}
INPUT_CONNECT_TOKEN: ${{ inputs.connect-token }}
run: |
${{ github.action_path }}/entrypoint.sh
shell: bash

0 comments on commit d50df7c

Please sign in to comment.