Skip to main content

GitHub Deployment YAML Files Now Use OIDC Authentication, and webhook_secret Will Be Retired

Published: 2026-12-04

The sample YAML files (Next / Nuxt 4) for deploying to KurocoFront, displayed in [External system integration] -> [GitHub], now authenticate with GitHub Actions OIDC tokens.

The new YAML files no longer contain the webhook_secret value. On each run, the workflow receives an OIDC token from GitHub and sends it with the deployment notification to Kuroco. You do not need to register GitHub Secrets or configure anything additional in Kuroco.

Notifications with webhook_secret will no longer be accepted on any site after January 19, 2027, 23:59 (JST). If you deploy to KurocoFront through the GitHub integration, update your YAML files before then.

info

This notice uses the following terms for the values used in deployment notifications to Kuroco.

  • webhook_secret: The value contained in earlier sample YAML files.
  • OIDC token: A token that GitHub Actions issues for each workflow run.
  • Deploy token: A token added in "Token" in [KurocoFront Settings].

Who is affected​

Action is required if either of the following applies.

  • A YAML file under .github/workflows/ contains webhook_secret:
  • You have scripts that send the deployment notification (/direct/menu/github/) with the webhook_secret value

Changes to the YAML files​

The YAML files for Next and Nuxt 4 have the same three changes. Replace sitekey with your site key.

1. Adding permissions​

Add permissions: at the top of the YAML file (after concurrency:). id-token: write is required to obtain an OIDC token. When permissions is specified, permissions that are not specified are no longer granted, so contents: read, which is used to check out the repository, is also specified.

 concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

+permissions:
+ contents: read
+ id-token: write
+
jobs:

2. Getting the pull request branch (pullreq_build)​

In the "Get branch name and sha" step of pullreq_build, send an OIDC token instead of webhook_secret.

       - name: "Get branch name and sha"
id: get_branch
run: |
- PR=$(curl -H "X-Kuroco-Auth: token <webhook_secret value>" https://sitekey.g.kuroco.app/direct/menu/github/?pr=${{ github.event.issue.pull_request.url }})
+ OIDC_TOKEN=$(curl -sSf -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=kuroco:sitekey" | jq -er '.value')
+ PR=$(curl -H "Authorization: Bearer $OIDC_TOKEN" https://sitekey.g.kuroco.app/direct/menu/github/?pr=${{ github.event.issue.pull_request.url }})
echo "branch=$(echo $PR | jq -r '.ref')" >> $GITHUB_OUTPUT
echo "sha=$(echo $PR | jq -r '.sha')" >> $GITHUB_OUTPUT

3. Deployment notification (pullreq_build, pushed_build)​

Add a step that obtains an OIDC token before the "Webhook" step. In the "Webhook" step, remove webhook_secret and send the OIDC token with webhook_auth_type and webhook_auth. Change both pullreq_build and pushed_build.

+      - name: Get OIDC token for Kuroco
+ id: kuroco_oidc
+ run: |
+ OIDC_TOKEN=$(curl -sSf -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=kuroco:sitekey" | jq -er '.value')
+ echo "::add-mask::$OIDC_TOKEN"
+ echo "token=$OIDC_TOKEN" >> "$GITHUB_OUTPUT"
- name: Webhook
uses: diverta/workflow-webhook@v3
with:
webhook_url: "https://sitekey.g.kuroco.app/direct/menu/github/"
- webhook_secret: "<webhook_secret value>"
+ webhook_auth_type: bearer
+ webhook_auth: ${{ steps.kuroco_oidc.outputs.token }}
data: '{"single_zip":"1","domain":"sitekey.g.kuroco-front.app", ...}'
note

The YAML files displayed in the admin panel contain the audience value (kuroco:sitekey) and webhook_url for your site.

How to update​

  1. In the Kuroco admin panel, click [External system integration] -> [GitHub] and copy the YAML file displayed in "Repository". If you use both "GitHub Actions workflow file front-end domain" (production) and "GitHub Actions workflow file staging site" (stage), copy both.
  2. Apply your own changes, such as build commands, and replace the files under .github/workflows/. If you created your own YAML file, apply the three changes in Changes to the YAML files.
  3. Push the changes, and check in [Actions] on GitHub that the workflow succeeds and the site is deployed to KurocoFront.
  4. If other scripts use webhook_secret, switch them to a deploy token.
  5. In [Channels] -> [WEB] -> [KurocoFront Settings], delete the token whose value is the same as webhook_secret in your earlier YAML file (expiration: January 19, 2027, 23:59) from the token list.Release version: β / RCversion
danger

A deleted token cannot be recreated. Delete it only after switching both the production and stage YAML files and any scripts that use webhook_secret. Notifications that have not been switched fail with a 400 error, and the GitHub Actions log does not show details.

caution

With OIDC tokens, only runs started by push and workflow_dispatch can deploy to production. If you have changed your YAML file to deploy to production with other triggers, such as schedule, repository_dispatch, or workflow_run, send notifications with a deploy token. [Run Deployment] in the admin panel and the workflow integration on content updates start runs with workflow_dispatch, so they are not affected.

Handling of webhook_secret until January 19, 2027​

The stable version currently accepts notifications with webhook_secret without conditions. In the RC version, and after the stable release in January 2027, the following applies.Release version: β / RCversion

  • For sites integrated with GitHub, webhook_secret is registered as a token in KurocoFront Settings. The token value is the same as webhook_secret, and its expiration is January 19, 2027, 23:59 (JST).
  • Notifications with webhook_secret are accepted only while this token is valid. This applies to the signature (X-Hub-Signature), X-Kuroco-Auth, and ?pr= queries.
  • If you delete the token or disconnect the GitHub integration, webhook_secret is no longer accepted, even before the expiration. Disconnecting the GitHub integration also deletes the token, and it is not registered again when you reconnect.
  • While webhook_secret is accepted, a warning is displayed on the Security Advisory and GitHub screens. This warning cannot be acknowledged.

When a deploy token is required​

OIDC tokens can be used only from GitHub Actions in the repository integrated with Kuroco. In the following cases, send notifications with a deploy token issued in [Channels] -> [WEB] -> [KurocoFront Settings]. This is not required if you use the YAML file from the admin panel as is.

  • Deploying to production with triggers other than push and workflow_dispatch (such as schedule, repository_dispatch, or workflow_run)
  • Sending notifications from outside GitHub Actions (such as batch processes)
  • Deploying an external ZIP file (storage_url)
  • Using GitHub Enterprise Cloud with the setting that makes the OIDC token issuer unique to your enterprise (unique token URL)

Send the deployment notification (/direct/menu/github/, including ?pr=) with the X-Kuroco-Auth: token <deploy token> header.

  • When sending from outside GitHub Actions (such as batch processes), see Can I deploy to KurocoFront without using GitHub?.
  • When sending from GitHub Actions, specify the header with webhook_auth_type: header and webhook_auth of diverta/workflow-webhook. Do not write the deploy token directly in the YAML file; register it in GitHub Secrets and reference it. In the following example, the deploy token is registered in GitHub Secrets as KUROCO_DEPLOY_TOKEN.
       - name: Webhook
    uses: diverta/workflow-webhook@v3
    with:
    webhook_url: "https://sitekey.g.kuroco.app/direct/menu/github/"
    webhook_auth_type: header
    webhook_auth: "X-Kuroco-Auth:token ${{ secrets.KUROCO_DEPLOY_TOKEN }}"

After January 19, 2027, 23:59 (JST), webhook_secret is not accepted in any header.

Rollout Timeline​

Notifications with webhook_secret will no longer be accepted after January 19, 2027, 23:59 (JST).

Contact​

If you have any further questions regarding this matter, please feel free to contact Kuroco Support.


Support

If you have any other questions, please contact us or check out Our Slack Community.