From b68c389605e33dc02d3e21dedf5002920fbb881a Mon Sep 17 00:00:00 2001 From: Jamie Schouten Date: Sat, 15 Feb 2025 01:14:50 +0100 Subject: [PATCH] Initial commit --- README.md | 1 + action.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 README.md create mode 100644 action.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..66f8027 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Warden diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..21b4f4d --- /dev/null +++ b/action.yml @@ -0,0 +1,23 @@ +name: Auth Warden +description: Authenticate with Bitwarden +author: Jamie Schouten +inputs: + email: + description: 'email' + required: true + password: + description: 'password' + required: true + server: + description: 'Bitwarden server' + required: false + default: ${{ vars.WARDEN_URL }} + +runs: + using: "composite" + steps: + - name: Auth Warden + shell: sh + run: | + bw config server ${{ inputs.server }} + export BW_SESSION=$(bw login '${{ inputs.email }}' '${{ inputs.password }}' --raw)