NuGet - Add Push Service
Compare changes
+ 6
− 6
@@ -36,20 +36,20 @@ def authorized_project_find!(id)
This MR adds the Push service endpoint in the NuGet API.
This API is meant to be used by the following tools: nuget
and Visual Studio.
See the epic: &2271 (closed)
Related issue #36499 (closed) and #20050 (closed)
This MR changes the following:
Packages::Nuget::CreatePackageService
API::Helpers::PackagesHelpers
unauthorized
with the proper http header, it will make a second request but the proper credentials attached. This part has already been handled in the previous MR (!20825 (merged)).Here is an upload action with nuget
:
$ nuget push DummyProject.DummyPackage.1.0.0.nupkg -source local
WARNING: No API Key was provided and no API Key could be found for 'https://gitlab.local/api/v4/projects/19/packages/nuget'. To save an API Key for a source use the 'setApiKey' command.
Pushing DummyProject.DummyPackage.1.0.0.nupkg to 'https://gitlab.local/api/v4/projects/19/packages/nuget'...
PUT https://gitlab.local/api/v4/projects/19/packages/nuget/
Created https://gitlab.local/api/v4/projects/19/packages/nuget/ 37741ms
Your package was pushed.
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
@gitlab-com/gl-security/appsec