question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gitlab CI automatic release

See original GitHub issue

The problem

I’m trying to set up gitlab ci to work with pythonn-semantic-release but when the code tries to push, I’m getting 403 Forbidden.

Expected behavior

python-semantic-release would realise it’s on gitlab ci and obtain the CI_JOB_TOKEN.

Additional context

Could it be connected to this: https://docs.gitlab.com/ee/user/project/new_ci_build_permissions_model.html

Are there any examples out there of .gitlab-ci.yml for this use case?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
chbndrhnnscommented, Feb 18, 2021

IIRC, pushing code with this CI_JOB_TOKEN is not possible and a personal access token is required for that.

1reaction
carlosfunkcommented, Feb 24, 2021

@nraw I’ve just been through the same thing, you need to create a personal access token and use that to set a CI/CD variable called GL_TOKEN.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How GitLab is automating release generation in .gitlab-ci.yml
Release Management, a group within the Release stage, is about unblocking users as they continuously deliver value to their customers. A part of ......
Read more >
GitLab: Automatic releases with CI/CD Pipelines
After that, every time the scheduler is executed, a Tag will be created from the Master-Branch. This Tag will then be released automatically....
Read more >
How To Automate Release Notes in GitLab - Medium
It is easy to find all the commits from the new release. $PREV_HASH is the last commit of the previous release.
Read more >
Introduction - Release automation - Gitlab CI
go-semrel-gitlab is a set of commands you can use to compose your automated release workflow. ... Other features include. ... This project was...
Read more >
Automate tagging and creating releases with GitLab CI
The basic workflow is straight forward. You commit a change to your default branch, it runs the pipeline defined in your .gitlab-ci.yml file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found