Skip to content

Commit

Permalink
Merge pull request #81 from askb/main
Browse files Browse the repository at this point in the history
Fix: Set ::add-mask:: before processing the vars
  • Loading branch information
askb authored Nov 28, 2023
2 parents 0679821 + e72a21f commit 3895052
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/compose-packer-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ jobs:
shell: bash
# yamllint disable rule:line-length
run: |
echo "${{ env.CLOUDS_ENV_B64 }}" | sed 's/^ */::add-mask::/'
clouds_env_b64="${{ env.CLOUDS_ENV_B64 }}"
echo "::add-mask::${clouds_env_b64}" | base64 --decode > "${GITHUB_WORKSPACE}/cloud-env.pkrvars.hcl"
echo "${clouds_env_b64}" | base64 --decode > "${GITHUB_WORKSPACE}/cloud-env.pkrvars.hcl"
# yamllint enable rule:line-length
- name: Create cloud.yaml file for openstack client
id: create-cloud-yaml-file
Expand All @@ -123,8 +124,9 @@ jobs:
# yamllint disable rule:line-length
run: |
mkdir -p "$HOME/.config/openstack"
echo "${{ env.CLOUDS_YAML_B64 }}" | sed 's/^ */::add-mask::/'
clouds_yaml_b64="${{ env.CLOUDS_YAML_B64 }}"
echo "::add-mask::${clouds_yaml_b64}" | base64 --decode > "$HOME/.config/openstack/clouds.yaml"
echo "${clouds_yaml_b64}" | base64 --decode > "$HOME/.config/openstack/clouds.yaml"
# yamllint enable rule:line-length
- name: Setup Python
if: steps.changes.outputs.src == 'true'
Expand Down

0 comments on commit 3895052

Please sign in to comment.