Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
thetoolsmith committed Jan 24, 2025
1 parent 624b0a7 commit d4b38f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/actions/mask_secrets/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ inputs:
runs:
using: "composite"
steps:
- name: Masking
run: |
IFS=',' read -ra secrets <<< "${{ inputs.secrets }}"
for secret in "${secrets[@]}" ; do
echo "::add-mask::$secret ... registered"
done
shell: bash
# - name: Masking
# run: |
# echo "::add-mask::${{ inputs.secrets }}"
# IFS=',' read -ra secrets <<< "${{ inputs.secrets }}"
# for secret in "${secrets[@]}" ; do
# echo "::add-mask::$secret ... registered"
# done
# shell: bash
- name: Masking
run: |
echo "::add-mask::${{ inputs.secrets }}"
shell: bash
6 changes: 5 additions & 1 deletion .github/workflows/codebuild_runner_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,15 @@ jobs:
ref: 'test/gha-codebuild-runner'
path: 'testing-action'

- name: checkout output
run: |
echo -e "${{ steps.get-aws-secret.outputs.secret-ids }}
# wrap aws secrets
- name: Secret Masking
uses: ./testing-action/.github/actions/mask_secrets
with:
secrets: "TEST_SECRET_1,TEST_SECRET_2"
secrets: "${{ env.TEST_SECRET_1 }}"

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

0 comments on commit d4b38f4

Please sign in to comment.