Browse Source

Maintenance: Fix false gitleaks positives

Martin Gruner 4 months ago
parent
commit
34e874626a

+ 3 - 3
app/controllers/organizations_controller.rb

@@ -251,7 +251,7 @@ curl http://localhost/api/v1/organization/{id} -v -u #{login}:#{password} -H "Co
   #
   #
   # @summary          Download of example CSV file.
   # @summary          Download of example CSV file.
   # @notes            The requester have 'admin.organization' permissions to be able to download it.
   # @notes            The requester have 'admin.organization' permissions to be able to download it.
-  # @example          curl -u 'me@example.com:test' http://localhost:3000/api/v1/organizations/import_example
+  # @example          curl -u #{login}:#{password} http://localhost:3000/api/v1/organizations/import_example
   #
   #
   # @response_message 200 File download.
   # @response_message 200 File download.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.
@@ -268,8 +268,8 @@ curl http://localhost/api/v1/organization/{id} -v -u #{login}:#{password} -H "Co
   #
   #
   # @summary          Starts import.
   # @summary          Starts import.
   # @notes            The requester have 'admin.text_module' permissions to be create a new import.
   # @notes            The requester have 'admin.text_module' permissions to be create a new import.
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/organizations.csv' 'https://your.zammad/api/v1/organizations/import?try=true'
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/organizations.csv' 'https://your.zammad/api/v1/organizations/import'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/organizations.csv' 'https://your.zammad/api/v1/organizations/import?try=true'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/organizations.csv' 'https://your.zammad/api/v1/organizations/import'
   #
   #
   # @response_message 201 Import started.
   # @response_message 201 Import started.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.

+ 3 - 3
app/controllers/text_modules_controller.rb

@@ -152,7 +152,7 @@ curl http://localhost/api/v1/text_modules.json -v -u #{login}:#{password} -H "Co
   #
   #
   # @summary          Download of example CSV file.
   # @summary          Download of example CSV file.
   # @notes            The requester have 'admin.text_module' permissions to be able to download it.
   # @notes            The requester have 'admin.text_module' permissions to be able to download it.
-  # @example          curl -u 'me@example.com:test' http://localhost:3000/api/v1/text_modules/import_example
+  # @example          curl -u #{login}:#{password} http://localhost:3000/api/v1/text_modules/import_example
   #
   #
   # @response_message 200 File download.
   # @response_message 200 File download.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.
@@ -173,8 +173,8 @@ curl http://localhost/api/v1/text_modules.json -v -u #{login}:#{password} -H "Co
   #
   #
   # @summary          Starts import.
   # @summary          Starts import.
   # @notes            The requester have 'admin.text_module' permissions to be create a new import.
   # @notes            The requester have 'admin.text_module' permissions to be create a new import.
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/Textbausteine_final2.csv' 'https://your.zammad/api/v1/text_modules/import?try=true'
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/Textbausteine_final2.csv' 'https://your.zammad/api/v1/text_modules/import'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/Textbausteine_final2.csv' 'https://your.zammad/api/v1/text_modules/import?try=true'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/Textbausteine_final2.csv' 'https://your.zammad/api/v1/text_modules/import'
   #
   #
   # @response_message 201 Import started.
   # @response_message 201 Import started.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.

+ 3 - 3
app/controllers/ticket_articles_controller.rb

@@ -209,7 +209,7 @@ class TicketArticlesController < ApplicationController
   #
   #
   # @summary          Download of example CSV file.
   # @summary          Download of example CSV file.
   # @notes            The requester have 'admin' permissions to be able to download it.
   # @notes            The requester have 'admin' permissions to be able to download it.
-  # @example          curl -u 'me@example.com:test' http://localhost:3000/api/v1/ticket_articles/import_example
+  # @example          curl -u #{login}:#{password} http://localhost:3000/api/v1/ticket_articles/import_example
   #
   #
   # @response_message 200 File download.
   # @response_message 200 File download.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.
@@ -230,8 +230,8 @@ class TicketArticlesController < ApplicationController
   #
   #
   # @summary          Starts import.
   # @summary          Starts import.
   # @notes            The requester have 'admin' permissions to be create a new import.
   # @notes            The requester have 'admin' permissions to be create a new import.
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/ticket_articles.csv' 'https://your.zammad/api/v1/ticket_articles/import?try=true'
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/ticket_articles.csv' 'https://your.zammad/api/v1/ticket_articles/import'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/ticket_articles.csv' 'https://your.zammad/api/v1/ticket_articles/import?try=true'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/ticket_articles.csv' 'https://your.zammad/api/v1/ticket_articles/import'
   #
   #
   # @response_message 201 Import started.
   # @response_message 201 Import started.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.

+ 3 - 3
app/controllers/tickets_controller.rb

@@ -609,7 +609,7 @@ class TicketsController < ApplicationController
   #
   #
   # @summary          Download of example CSV file.
   # @summary          Download of example CSV file.
   # @notes            The requester have 'admin' permissions to be able to download it.
   # @notes            The requester have 'admin' permissions to be able to download it.
-  # @example          curl -u 'me@example.com:test' http://localhost:3000/api/v1/tickets/import_example
+  # @example          curl -u #{login}:#{password} http://localhost:3000/api/v1/tickets/import_example
   #
   #
   # @response_message 200 File download.
   # @response_message 200 File download.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.
@@ -630,8 +630,8 @@ class TicketsController < ApplicationController
   #
   #
   # @summary          Starts import.
   # @summary          Starts import.
   # @notes            The requester have 'admin' permissions to be create a new import.
   # @notes            The requester have 'admin' permissions to be create a new import.
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/tickets.csv' 'https://your.zammad/api/v1/tickets/import?try=true'
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/tickets.csv' 'https://your.zammad/api/v1/tickets/import'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/tickets.csv' 'https://your.zammad/api/v1/tickets/import?try=true'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/tickets.csv' 'https://your.zammad/api/v1/tickets/import'
   #
   #
   # @response_message 201 Import started.
   # @response_message 201 Import started.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.

+ 3 - 3
app/controllers/users_controller.rb

@@ -859,7 +859,7 @@ curl http://localhost/api/v1/users/avatar -v -u #{login}:#{password} -H "Content
   #
   #
   # @summary          Download of example CSV file.
   # @summary          Download of example CSV file.
   # @notes            The requester have 'admin.user' permissions to be able to download it.
   # @notes            The requester have 'admin.user' permissions to be able to download it.
-  # @example          curl -u 'me@example.com:test' http://localhost:3000/api/v1/users/import_example
+  # @example          curl -u #{login}:#{password} http://localhost:3000/api/v1/users/import_example
   #
   #
   # @response_message 200 File download.
   # @response_message 200 File download.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.
@@ -876,8 +876,8 @@ curl http://localhost/api/v1/users/avatar -v -u #{login}:#{password} -H "Content
   #
   #
   # @summary          Starts import.
   # @summary          Starts import.
   # @notes            The requester have 'admin.text_module' permissions to be create a new import.
   # @notes            The requester have 'admin.text_module' permissions to be create a new import.
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/users.csv' 'https://your.zammad/api/v1/users/import?try=true'
-  # @example          curl -u 'me@example.com:test' -F 'file=@/path/to/file/users.csv' 'https://your.zammad/api/v1/users/import'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/users.csv' 'https://your.zammad/api/v1/users/import?try=true'
+  # @example          curl -u #{login}:#{password} -F 'file=@/path/to/file/users.csv' 'https://your.zammad/api/v1/users/import'
   #
   #
   # @response_message 201 Import started.
   # @response_message 201 Import started.
   # @response_message 403 Forbidden / Invalid session.
   # @response_message 403 Forbidden / Invalid session.