Try to avoid passwords in clean text

This commit is contained in:
Alexey Masterov
2024-09-09 11:58:18 +02:00
parent 8a00cc817c
commit 6f2d7b4662
2 changed files with 508 additions and 522 deletions

View File

@@ -51,6 +51,19 @@ jobs:
cd /__w/neon/neon/vendor/postgres-v${{ matrix.DEFAULT_PG_VERSION }}
patch -p1 < ../../patches/cloud_regress_pg${{ matrix.DEFAULT_PG_VERSION }}.patch
- name: Generate a random password
id: pwgen
run: |
DBPASS=$(dd if=/dev/random bs=48 count=1 2>/dev/null | base64)
echo DBPASS=${DBPASS//\//} >> ${GITHUB_OUTPUT}
- name: Change tests according to the generated password
run: |
cd /__w/neon/neon/vendor/postgres-v${{ matrix.DEFAULT_PG_VERSION }}
for fname in sql/*.sql expected/*.out; do
sed -i.bak "s/NEON_PASSWORD_PLACEHOLDER/'$dbpassword'/" $file
done
- name: Download Neon artifact
uses: ./.github/actions/download
with:

File diff suppressed because it is too large Load Diff