diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index 79c752d..0d6e638 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -71,14 +71,3 @@ jobs: run: | set -exo pipefail cat named_email.txt | grep "twdps" - - - name: source $GITHUB_ENV from file using 1password-action/env - uses: ThoughtWorks-DPS/1password-action/env@main - with: - env-file: test/op.env - - - name: test 1password-action/env results - shell: bash - run: | - set -exo pipefail - echo $GMAIL_ADDRESS | grep "twdps" diff --git a/README.md b/README.md index 495585b..84a7b3b 100644 --- a/README.md +++ b/README.md @@ -9,22 +9,6 @@ Action for common 1password-cli uses. -### env - -`source` ENV values from 1password Vault into GitHub Actions $GITHUB_ENV from a local file. - -example bash env-file format: - -TFE_TOKEN=op://my-vault/terrafor-cloud/team-token -SLACK_BOT_TOKEN=op://my-vault/slack/bot-token - -```yaml -- name: source $GITHUB_ENV from file using 1password-action/env - uses: ThoughtWorks-DPS/1password-action/env@v0.1.0 - with: - env-file: prod.env -``` - ### tpl Populate template file with values from 1password vault and write to out-file. diff --git a/env/action.yaml b/env/action.yaml deleted file mode 100644 index a7580cc..0000000 --- a/env/action.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# yamllint disable rule:line-length ---- -name: tpl - -description: | - `source` ENV values into GitHub Actions $GITHUB_ENV from a local file. - - example bash env-file format: - - export TFE_TOKEN=op://my-vault/terrafor-cloud/team-token - export SLACK_BOT_TOKEN=op://my-vault/slack/bot-token - -inputs: - - working-directory: - description: Set working directory. Default is ./. - required: false - default: . - - env-file: - description: environment filename. Default is op.env - required: false - default: op.env - -runs: - using: "composite" - - steps: - - - shell: bash - working-directory: ${{ inputs.working-directory }} - run: | - #!/usr/bin/env bash - set -eo pipefail - op inject -i ${{ inputs.env-file }} >> $GITHUB_ENV