qore
qore copied to clipboard
Use Qore/QT account for setting statuses in Gitlabfiles
Most Gitlabfiles of Qore and modules still contain the following type of code:
curl "https://api.github.com/repos/qorelanguage/${REPO_NAME}/statuses/${CI_COMMIT_SHA}" \
-X POST -u omusil24:${GITHUB_ACCESS_TOKEN} -H "Content-Type: application/json" \
-d "{\"state\": \"pending\", \"context\": \"${REPO_NAME}\", \"description\": \"Gitlab CI\", \"target_url\": \"${CI_JOB_URL}\"}"
which is using my Github account and token. I'm not gonna remove it or anything, but I think this should be changed to use some kind of Qore/QT Github account. Ideally also modified to use a var like ${GITHUB_USER}
which can be set in project pipelines in Gitlab.