Skip to content

CI: Ensure that GITLAB_API_TOKEN is correct

Peter Leitzen requested to merge pl-testing-changelog into main

Fail update-changelog if the provided GITLAB_API_TOKEN is invalid (e.g. missing or protected). Closes #29 (closed)

Also, improve release documentation to highlight that CHANGELOG.md should be updated by project bot 🤖 in the MR.

Testing

In order to perform these tests GITLAB_API_TOKEN is no longer a protected CI/CD variable:

Screenshot_from_2023-09-04_16-57-47

With this, update-changelog is run and fails if the API token does not have sufficient permissions.

🔴
https://gitlab.com/gitlab-org/ruby/gems/tanuki_emoji/-/jobs/5012800713 https://gitlab.com/gitlab-org/ruby/gems/tanuki_emoji/-/jobs/5012827332

See also !57 (d0009eb3) to see 🤖 committing the CHANGELOG.md in this very MR 🎉

Edited by Peter Leitzen

Merge request reports