neetob 0.5.65 → 0.5.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f2d8babeb0b3188023da71a4db99c635a8dc04872ef2ce2f8c53ae234d53b9c
|
4
|
+
data.tar.gz: dfa33938f38a65a1332ba4f12d3d6b890aac10cf8138f35c737b1ad6380c98f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 637ff5e57251fce98acb1897aaf0125c7f027e864267b569109b5debde735dfe40f486d7098098ec4fd9c9082d0aa012d05edbc1b1c9bc047760c7b9e435feb8
|
7
|
+
data.tar.gz: 3f2c595dd57f32cddb1f83f04c84c2a465b32ffd3765418d4a8fc99850cb4ba2355688c27e0ae300fbe18978ee526593086be3d2070cca085ca1b27f79670bf1
|
data/Gemfile.lock
CHANGED
@@ -24,10 +24,10 @@ module Neetob
|
|
24
24
|
comments = nil
|
25
25
|
if fasterer_exec_result.include?("0 offenses detected")
|
26
26
|
audit_passed = "Yes"
|
27
|
-
comments =
|
27
|
+
comments = "Vulnerabilities not detected"
|
28
28
|
else
|
29
29
|
optimizations_needed = "Yes"
|
30
|
-
comments =
|
30
|
+
comments = "Vulnerabilities detected"
|
31
31
|
end
|
32
32
|
repo_data << [repo, optimizations_needed, comments, audit_passed]
|
33
33
|
end
|
@@ -41,12 +41,18 @@ module Neetob
|
|
41
41
|
"Content-Type" => "application/json"
|
42
42
|
}
|
43
43
|
|
44
|
-
response = HTTParty.post(url, body: body.to_json, headers:)
|
44
|
+
response = HTTParty.post(url, body: body.to_json, headers:, follow_redirects: false)
|
45
45
|
|
46
46
|
if response.code == 200
|
47
|
-
ui.success("
|
47
|
+
ui.success("✅ Successfully added #{email} to #{workspace}.#{app} with the role #{role}.\n\n")
|
48
|
+
elsif response.code == 302
|
49
|
+
ui.error("❌ Could not add #{email} to #{workspace}.#{app} with role #{role}.")
|
50
|
+
ui.say("ℹ️ The #{app} app is not enabled for the workspace #{workspace}.\n\n")
|
51
|
+
elsif response.code == 422
|
52
|
+
ui.error("❌ Could not add #{email} to #{workspace}.#{app} with role #{role}.")
|
53
|
+
ui.say("Reason: #{response['error']}\n\n")
|
48
54
|
else
|
49
|
-
ui.error("Failed to add #{email} to #{workspace}.#{app}
|
55
|
+
ui.error("❌ Failed to add #{email} to #{workspace}.#{app} Response status: #{response.code}.\n\n")
|
50
56
|
end
|
51
57
|
end
|
52
58
|
end
|
data/lib/neetob/version.rb
CHANGED