Skip to content

Commit 440d322

Browse files
[NDR-71] Enhance masking logic for AWS account IDs in Terraform plan output
1 parent 7fb951c commit 440d322

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/terraform-dev-to-main-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ jobs:
8989
9090
# Mask AWS account IDs (12-digit numbers)
9191
grep -Eo '[0-9]{12}' tfplan.txt | while read -r account_id; do
92-
echo "::add-mask::$account_id"
92+
if [ -n "$account_id" ]; then
93+
echo "::add-mask::$account_id"
94+
fi
9395
done
9496
9597
# Mask GitHub secrets

0 commit comments

Comments
 (0)