Skip to content

Support for AWS CodeArtifact NuGet Repositories #371

@Habikki

Description

@Habikki

Description:
My organization heavily uses AWS CodeArtifact for Private NuGet Package Hosting.

Currently we have a private action running the following lines on ubuntu-latest without much complaint:

- name: Prepare NuGet Repository
    run: | 
      dotnet tool install -g AWS.CodeArtifact.NuGet.CredentialProvider
      dotnet codeartifact-creds install
      dotnet nuget remove source nuget.org 
      dotnet nuget add source "${{ inputs.aws-code-artifact-nuget-source }}" -n "${{ inputs.nuget-feed-name }}"    
    shell: bash

Note: removal of the default nuget.org source is only necessary for us as our CodeArtifact Repository is configured as a pass through cache to nuget.org.

Justification:
Adding this into the upstream setup-dotnet action would allow us to deprecate our private action. I'm opening this as a feature request to gauge interest for others that desire this support.

Are you willing to submit a PR?
Absolutely! If additional interest, I'll pick this up in short order. If not, I'll manage a PR the next time I have to update my private action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logicinvestigationThe issue is under investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions