diff --git a/fastlane/lib/fastlane/actions/github_api.rb b/fastlane/lib/fastlane/actions/github_api.rb index c3b8b3382b6..c8a742db28f 100644 --- a/fastlane/lib/fastlane/actions/github_api.rb +++ b/fastlane/lib/fastlane/actions/github_api.rb @@ -92,7 +92,6 @@ def available_options conflicting_options: [:api_bearer], sensitive: true, code_gen_sensitive: true, - is_string: true, default_value: ENV["GITHUB_API_TOKEN"], default_value_dynamic: true, optional: true), @@ -100,7 +99,6 @@ def available_options env_name: "FL_GITHUB_API_BEARER", sensitive: true, code_gen_sensitive: true, - is_string: true, description: "Use a Bearer authorization token. Usually generated by Github Apps, e.g. GitHub Actions GITHUB_TOKEN environment variable", conflicting_options: [:api_token], optional: true, @@ -118,13 +116,12 @@ def available_options FastlaneCore::ConfigItem.new(key: :body, env_name: "FL_GITHUB_API_REQUEST_BODY", description: "The request body in JSON or hash format", - is_string: false, + skip_type_validation: true, # allow Hash, Array default_value: {}, optional: true), FastlaneCore::ConfigItem.new(key: :raw_body, env_name: "FL_GITHUB_API_REQUEST_RAW_BODY", description: "The request body taken verbatim instead of as JSON, useful for file uploads", - is_string: true, optional: true), FastlaneCore::ConfigItem.new(key: :path, env_name: "FL_GITHUB_API_PATH", @@ -139,7 +136,7 @@ def available_options end), FastlaneCore::ConfigItem.new(key: :error_handlers, description: "Optional error handling hash based on status code, or pass '*' to handle all errors", - is_string: false, + type: Hash, default_value: {}, optional: true), FastlaneCore::ConfigItem.new(key: :headers,