Skip to content

Commit

Permalink
test alt approach
Browse files Browse the repository at this point in the history
  • Loading branch information
thetoolsmith committed Jan 24, 2025
1 parent 3cf1fde commit 593a36a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/actions/mask_secrets/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ runs:
run: |
IFS="\n,\r" read -a secrets <<< "${{ inputs.secrets }}"
for s in "${secrets[@]}"; do
echo -e "INPUT == ${s}"
segments=$(echo $s | tr "," "\n")
echo -e "the key is $segments[0] ${segments[0]}"
echo -e "KEY == ${segments[0]}"
echo "::add-mask::${segments[0]}"
done
shell: bash
8 changes: 4 additions & 4 deletions .github/workflows/codebuild_runner_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
# uses: aws-actions/aws-secretsmanager-get-secrets@v2
# with:
# secret-ids: |
# TEST_SECRET_1, cfpb/team/regtech/gha-codebuild-runner/test-secret-1
# TEST_SECRET_2, cfpb/team/regtech/gha-codebuild-runner/test-secret-2
# TEST_SECRET_1,cfpb/team/regtech/gha-codebuild-runner/test-secret-1
# TEST_SECRET_2,cfpb/team/regtech/gha-codebuild-runner/test-secret-2
# TEST_SECRET_3,arn:aws:secretsmanager:us-east-1:099248080076:secret:cfpb/team/regtech/gha-codebuild-runner/test-secret-3-9lVad8

- name: Checkout To Path
Expand Down Expand Up @@ -89,8 +89,8 @@ jobs:
uses: ./testing-action/.github/actions/mask_secrets
with:
secrets: |
TEST_SECRET_1, cfpb/team/regtech/gha-codebuild-runner/test-secret-1
TEST_SECRET_2, cfpb/team/regtech/gha-codebuild-runner/test-secret-2
TEST_SECRET_1,cfpb/team/regtech/gha-codebuild-runner/test-secret-1
TEST_SECRET_2,cfpb/team/regtech/gha-codebuild-runner/test-secret-2
TEST_SECRET_3,arn:aws:secretsmanager:us-east-1:099248080076:secret:cfpb/team/regtech/gha-codebuild-runner/test-secret-3-9lVad8
Expand Down

0 comments on commit 593a36a

Please sign in to comment.