Example GH Action that periodically triggers the CircleCI Pipeline that uses context variables
By default the scheduled CircleCI workflows cannot use security contexts, bug. Which is very frustrating. As a workaround, this repo uses GH Actions to trigger the pipelines periodically.
The GH Action .github/workflows/cron.yml runs periodically and triggers the CircleCI pipeline in .circleci/config.yml using the trigger-circleci-pipeline utility. The trigger uses the CIRCLE_CI_API_TOKEN
token to know which user is the "author" of the cron job, thus the CircleCI pipeline can use the security context variables.