Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
thetoolsmith committed Jan 23, 2025
1 parent 70128bf commit be342d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
17 changes: 10 additions & 7 deletions .github/actions/mask_secrets/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ inputs:
runs:
using: "composite"
steps:
# - name: Masking
# run: |
# IFS='\n' read -ra secrets <<< "${{ inputs.secrets }}"
# for secret in "${secrets[@]}" ; do
# if [[ "$secret" ]]; then
# echo "::add-mask::$secret ... registered"
# fi
# done
# shell: bash
- name: Masking
run: |
IFS='\n' read -ra secrets <<< "${{ inputs.secrets }}"
for secret in "${secrets[@]}" ; do
if [[ "$secret" ]]; then
echo "::add-mask::$secret ... registered"
fi
done
shell: bash
echo "::add-mask::${{ secrets }}"
5 changes: 1 addition & 4 deletions .github/workflows/codebuild_runner_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ jobs:
- name: Secret Masking
uses: ./testing-action/.github/actions/mask_secrets
with:
secrets: |
${{ env.TEST_SECRET_1 }}
${{ env.TEST_SECRET_2 }}
${{ env.TEST_SECRET_3 }}
secrets: "${{ env.TEST_SECRET_1 }},${{ env.TEST_SECRET_2 }},${{ env.TEST_SECRET_3 }}"

- name: check aws secrets
id: check-aws-secrets
Expand Down

0 comments on commit be342d0

Please sign in to comment.