mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 01:42:55 +00:00
Try to avoid passwords in clean text
This commit is contained in:
13
.github/workflows/cloud-regress.yml
vendored
13
.github/workflows/cloud-regress.yml
vendored
@@ -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
Reference in New Issue
Block a user