-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3 .sh files: Change shebang to simply /bin/sh
- Loading branch information
1 parent
23d4c46
commit 39f615b
Showing
3 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/sh | ||
|
||
# Abort the entire script if an error occurs | ||
set -e | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
PGPASSWORD="$JOB_HISTORY_DB_PASSWORD" pg_dump --file=backup_to_restore.sql --format=p --clean --encoding=utf8 --if-exists --dbname=$JOB_HISTORY_DB_NAME --host=$JOB_HISTORY_DB_HOST --port=$JOB_HISTORY_DB_PORT --username=$JOB_HISTORY_DB_USERNAME | ||
#!/bin/sh | ||
|
||
PGPASSWORD="$JOB_HISTORY_DB_PASSWORD" pg_dump --file=backup_to_restore.sql --format=p --clean --encoding=utf8 --if-exists --dbname="$JOB_HISTORY_DB_NAME" --host="$JOB_HISTORY_DB_HOST" --port=$JOB_HISTORY_DB_PORT --username="$JOB_HISTORY_DB_USERNAME" | ||
Check failure Code scanning / Secrets Audit Cleartext Storage of Sensitive Information. Error
Credential in plaintext?
Rule: Env Var
Line: PGPASSWORD="$JOB_HISTORY_DB_PASSWORD" pg_dump --file=backup_to_restore.sql --format=p --clean --encoding=utf8 --if-exists --dbname="$JOB_HISTORY_DB_NAME" --host="$JOB_HISTORY_DB_HOST" --port=$JOB_HISTORY_DB_PORT --username="$JOB_HISTORY_DB_USERNAME" Commit: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters