Skip to content

CI: Add an option to pass a Gitlab API authentication header in the CAPO scheduled cleanup

Loic Nicolle requested to merge support_authentication_forscheduled_cleanup into main

What does this MR do and why?

A bit similar to: !2379 (merged) in Sylva context all the repositories are public and we don't need authentication to request the pipelines API. This MR allow to pass an authentication hear to the request like this:

CLEANUP_AUTHENTICATION_HEADER: --header "PRIVATE-TOKEN: $CLEAN_TOKEN"

and avoid to override the whole job for that.

It can help to reuse Sylva CI in a different context where the repositories are private and/or doesn't allow to access to the pipeline API without authentication.

Merge request reports