Browse Source

Use our own action instead of bash for setting up docker content trust (#132)

pull/133/head
mimartin12 3 years ago committed by GitHub
parent
commit
82bfda6618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      setup-docker-trust/action.yml

18
setup-docker-trust/action.yml

@ -27,21 +27,13 @@ runs: @@ -27,21 +27,13 @@ runs:
- name: Retrieve secrets
id: get-secrets
shell: bash
env:
KEYVAULT: ${{ inputs.azure-keyvault-name }}
SECRETS: |
docker-password,
uses: bitwarden/gh-actions/get-keyvault-secrets@34ecb67b2a357795dc893549df0795e7383ff50f
with:
keyvault: "${{ inputs.azure-keyvault-name }}"
secrets: "docker-password,
docker-username,
dct-delegate-repo-passphrase,
dct-delegate-key
run: |
for i in ${SECRETS//,/ }
do
VALUE=$(az keyvault secret show --vault-name $KEYVAULT --name $i --query value --output tsv)
echo "::add-mask::$VALUE"
echo "$i=$VALUE" >> $GITHUB_OUTPUT
done
dct-delegate-key"
- name: Log into Docker
shell: bash

Loading…
Cancel
Save