Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,332
    • Merge requests 1,332
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #250819
Closed
Open
Issue created Sep 17, 2020 by Jackie Porter@jreporterDeveloper

Allow JOB_TOKEN to access Release Links API

Release notes

Previously, the Release links API only accepted a personal access token or a project access token for authentication. With this update, a CI_JOB_TOKEN is now accepted for authentication to use with the API to manipulate GitLab Release links.

Problem to solve

I tried out the release links API and wanted to add some URL links to the released artifacts in our Artifactory instance. The link should be added in the CI pipeline once the artifact was uploaded.

However, it turns out the call to this REST API does not work with the JOB_TOKEN header but only with the PRIVATE_TOKEN. Is this limitation intended? I don't want to maintain extra Private tokens just for manipulating the assets of the release.

Proposal

Extend JOB_TOKEN to support actions for https://docs.gitlab.com/ee/api/releases/links.html

Related Issue

We implemented this for the Releases API: #27001 (closed)

Related customer discussion - #27001 (comment 414567140)

Edited Jun 14, 2022 by Chris Balane
Assignee
Assign to
Time tracking