From bd68415e4d6be85a48c30ec320a424059e109a0c Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Mon, 9 Jan 2023 10:44:47 +0100 Subject: [PATCH] DOC document how to generate a valid CIRCLE_CI_TOKEN --- .github/workflows/trigger-hosting.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/trigger-hosting.yml b/.github/workflows/trigger-hosting.yml index 456ce68722e42..9d0c2c1a56070 100644 --- a/.github/workflows/trigger-hosting.yml +++ b/.github/workflows/trigger-hosting.yml @@ -21,6 +21,14 @@ jobs: - name: Trigger hosting jobs run: bash build_tools/github/trigger_hosting.sh env: + # Note: the CIRCLE_CI_TOKEN needs to be a user token instead of a + # project-wide token created using: + # + # https://support.circleci.com/hc/en-us/articles/360050351292-How-to-Trigger-a-Workflow-via-CircleCI-API-v2 + # + # At the time of writing, secrets.CIRCLE_CI_TOKEN is valued with a + # token created using the ogrisel circleci account using: + # https://app.circleci.com/settings/user/tokens CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }} EVENT: ${{ github.event.workflow_run.event }} RUN_ID: ${{ github.event.workflow_run.id }}