Skip to content

Commit

Permalink
refactor: pwgen pattern for webhook
Browse files Browse the repository at this point in the history
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
  • Loading branch information
heurtematte authored and fredg02 committed May 23, 2024
1 parent abe6d7a commit ff3c0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/create_gitlab_webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ _create_gitlab_webhook() {

if ! passw cbi "${pw_store_path}/webhook-secret" &> /dev/null ; then
echo "Creating webhook secret credentials in password store..."
pwgen -1 -s -r '&\!|%{'\''$' -y 24 | passw cbi insert --echo "${pw_store_path}/webhook-secret"
pwgen -1 -s -r '&\!|%{$'\' -y 24 | passw cbi insert --echo "${pw_store_path}/webhook-secret"
else
echo "Found ${GITLAB_PASS_DOMAIN} webhook-secret credentials for '${project_name}' in password store. Skipping creation..."
fi
Expand Down

0 comments on commit ff3c0ad

Please sign in to comment.