Skip to content

Commit de1651d

Browse files
committed
chore: mask aws account number w jq + sed
1 parent 94d72eb commit de1651d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/testsPython.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Get IAM user info
3434
run: |
35-
aws sts get-caller-identity | jq -r '.Account="************", .Arn |= sub("(arn:aws:iam::)(\\d+)(:user/\\w+)"; "\\1************\\3")'
35+
aws sts get-caller-identity | sed -E 's/(arn:aws:iam::)[0-9]+(:user\/\w+)/\1************\2/' | jq '.Account="************"'
3636
3737
- name: Run Python tests
3838
uses: ./.github/actions/tests/python

0 commit comments

Comments
 (0)