Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 38,038
    • Issues 38,038
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,345
    • Merge requests 1,345
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #36424

Closed
Open
Created Nov 14, 2019 by Tim Rizzi@trizziDeveloper

Use your Job token to authenticate to and update packages in your GitLab NuGet Repository

Problem to solve

The GitLab NuGet Repository allows developers to build, publish and share .NET packages, right alongside their source code and CI Pipelines. However, we currently do not allow users to authenticate using the pre-defined environment variable CI_JOB_TOKEN, which either prevents users from using the feature or forces them to use their personal credentials for making updates to the NuGet Repository.

Intended users

  • Sasha (Software Developer)
  • Devon (DevOps Engineer)

Further details

Benefits

  • Easily publish and install NuGet packages, without having to rely on personal access tokens or user-generated environment variables.
  • Work more securely by using CI_JOB_TOKEN

Proposal

When using GitLab CI/CD, allow users to publish and install packages using the pre-defined environment variable CI_JOB_TOKEN.

Permissions and Security

  • There are no permissions changes required for this change.
  • The job token inherits the permissions of the user that ran the pipeline/job, so you will still need permissions to publish or install a given package.

Documentation

  • Update the NuGet docs with an example of how to publish and install a package via Ci/CD.
    • The Maven topic has an example.
  • We also need to update this topic to add it.

Testing

What does success look like, and how can we measure that?

  • Success looks like we see increased adoption and usage of the NuGet Repository. We can measure this using our North Star Metric (gitlab-data/analytics#4597 (closed)) of the number of packages published/installed.
Edited Aug 10, 2020 by Tim Rizzi
Assignee
Assign to
13.3
Milestone
13.3 (Past due)
Assign milestone
Time tracking