You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone! thanks for the plugin, it does quite a nice job, that being said, I would like to ask for a feature or support of a CI predefined variable, called CI_JOB_TOKEN.
When a CI/CD pipeline job is about to run, GitLab generates a unique token and makes it available to the job as the CI_JOB_TOKEN predefined variable. The token is valid only while the job is running. After the job finishes, the token access is revoked and you cannot use the token anymore.
Now, It might be me doing something wrong or lack of understanding of the GITLAB_TOKEN and GL_TOKEN variables, but I believe this should achieved without need to static assign a value or token in the CI/CD variables of the project or group.
imho, a dynamic token like CI_JOB_TOKEN it might be a better approach. If this is already supported please then close this request. Thanks!
The text was updated successfully, but these errors were encountered:
If you fork this plugin and change that to "JOB-TOKEN" it can use the job token. You'll also have to change the verify.js step though as it also uses the token there.
Semantic release will probably still fail as it checks whether it can push no matter how you release. Hence why I also forked semantic-release and changed that for our CI/CD system.
As @JonasSchubert mentions above this is the same request as #156 which was closed in favor of the more general semantic-release issue semantic-release/semantic-release#1729. I'm therefore also going to close this one. Feel free to subscribe for the semantic-release issue for updates 🙇
Hi everyone! thanks for the plugin, it does quite a nice job, that being said, I would like to ask for a feature or support of a CI predefined variable, called
CI_JOB_TOKEN
.When a CI/CD pipeline job is about to run, GitLab generates a unique token and makes it available to the job as the CI_JOB_TOKEN predefined variable. The token is valid only while the job is running. After the job finishes, the token access is revoked and you cannot use the token anymore.
I've tried a pipeline using variables like:
also tried,
but in both cases, I get errors in the Job related to
EINVALIDGLTOKEN
from verify.js file at: https://github.com/semantic-release/gitlab/blob/master/lib/verify.js#L84Now, It might be me doing something wrong or lack of understanding of the
GITLAB_TOKEN
andGL_TOKEN
variables, but I believe this should achieved without need to static assign a value or token in the CI/CD variables of the project or group.imho, a dynamic token like
CI_JOB_TOKEN
it might be a better approach. If this is already supported please then close this request. Thanks!The text was updated successfully, but these errors were encountered: