Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
clive
Commits
ef13fead
Verified
Commit
ef13fead
authored
9 months ago
by
Mateusz Żebrak
Browse files
Options
Downloads
Patches
Plain Diff
Add missing set -euo pipefail
parent
af462d25
No related branches found
No related tags found
2 merge requests
!415
CI check_... scripts improvements
,
!412
V1.27.5.13 release
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/check_for_dangling_beekeeper.bash
+3
-1
3 additions, 1 deletion
scripts/check_for_dangling_beekeeper.bash
scripts/check_is_private_key_nor_password_is_not_logged.bash
+3
-1
3 additions, 1 deletion
scripts/check_is_private_key_nor_password_is_not_logged.bash
with
6 additions
and
2 deletions
scripts/check_for_dangling_beekeeper.bash
+
3
−
1
View file @
ef13fead
#!/bin/bash
count
=
$(
pgrep
"beekeeper"
-c
)
set
-euo
pipefail
count
=
$(
pgrep
"beekeeper"
--count
||
true
)
if
[[
$count
-gt
0
]]
;
then
echo
"Error: There is dangling 'beekeeper' process left."
...
...
This diff is collapsed.
Click to expand it.
scripts/check_is_private_key_nor_password_is_not_logged.bash
+
3
−
1
View file @
ef13fead
#!/bin/bash
set
-euo
pipefail
function
find_password_private_keys
()
{
find
.
-path
"*/clive/*/latest.log"
-print0
|
xargs
-0
\
grep
--with-filename
--line-number
--ignore-case
--word-regexp
--extended-regexp
\
'(pass(word)?|[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{51})'
|
grep
"
$@
"
--invert-match
--extended-regexp
\
'(Error in response from url|Problem occurred during communication with|test_tools.__private.logger)'
'(Error in response from url|Problem occurred during communication with|test_tools.__private.logger)'
||
true
}
amount_of_occurrences
=
$(
find_password_private_keys
--count
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment