Skip to content

[Question]: When using NuGetAuthenticate@1 to auth to a feed within the same org, how often does the access token change? #21345

@MarlonTuckerAareon

Description

@MarlonTuckerAareon

Task name

NuGetAuthenticate@1

Task version

1.263.4

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

windows-latest & linux-latest

Question

Hello

Following the code path I can see it calls getSystemAccessToken.

How often does this token change, is it different for each pipeline run.

Reason is this is going to be sent over to a docker build and be part of a layer, and if this changes each run that layer cache will be invalidated and subsequently cause the build to generate all layers after, effectively disabling docker layer caching for the build.

If it does change each run, is there a way to use a fixed API key for a feed within the same org, in a similar way you can for external orgs?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions