ci: Actually use token file when starting the issue bot

The issue bot has an entry-point, so it launches the tool by default and
that would fail as per the missing env variable:

  2025/10/30 17:57:43 unable to create GitLab client(s): please configure
  ISSUE_BOT_API_TOKEN environment variable (unable to find environment
  variable: ISSUE_BOT_API_TOKEN)

So, go manual instead for real for now.

See: https://gitlab.com/gitlab-org/distribution/issue-bot/-/issues/26
Related: https://gitlab.com/gitlab-org/distribution/issue-bot/-/merge_requests/27
This commit is contained in:
Marco Trevisan (Treviño)
2025-10-30 21:55:06 +01:00
parent 6e05ef5e0a
commit 41a5228ee6

View File

@@ -1015,7 +1015,11 @@ dist-job:
issue-bot:
stage: report
image: registry.gitlab.com/gitlab-org/distribution/issue-bot:latest
image:
name: registry.gitlab.com/gitlab-org/distribution/issue-bot:latest
# We need to launch it manually for now, until the token file is supported:
# https://gitlab.com/gitlab-org/distribution/issue-bot/-/merge_requests/27
entrypoint: ["/bin/sh", "-e", "-l", "-c"]
script:
- ISSUE_BOT_API_TOKEN=$(cat "${ISSUE_BOT_API_TOKEN_FILE}")
- export ISSUE_BOT_API_TOKEN