Skip to content

Commit e4625c2

Browse files
Avoid { and } getting redacted in logs (#406)
canonical/data-platform-workflows#166
1 parent f9e3dcb commit e4625c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
libjuju-version-constraint: ${{ matrix.juju.libjuju }}
6565
_beta_allure_report: ${{ matrix.juju.allure }}
6666
secrets:
67+
# GitHub appears to redact each line of a multi-line secret
68+
# Avoid putting `{` or `}` on a line by itself so that it doesn't get redacted in logs
6769
integration-test: |
68-
{
69-
"AWS_ACCESS_KEY": "${{ secrets.AWS_ACCESS_KEY }}",
70+
{ "AWS_ACCESS_KEY": "${{ secrets.AWS_ACCESS_KEY }}",
7071
"AWS_SECRET_KEY": "${{ secrets.AWS_SECRET_KEY }}",
7172
"GCP_ACCESS_KEY": "${{ secrets.GCP_ACCESS_KEY }}",
72-
"GCP_SECRET_KEY": "${{ secrets.GCP_SECRET_KEY }}",
73-
}
73+
"GCP_SECRET_KEY": "${{ secrets.GCP_SECRET_KEY }}", }
7474
permissions:
7575
contents: write # Needed for Allure Report beta

0 commit comments

Comments
 (0)