kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Migrate from tibdex/github-app-token to actions/create-github-app-token

Open rtibbles opened this issue 9 months ago • 4 comments

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Migrate all GitHub Actions workflows from the deprecated tibdex/github-app-token action to the official actions/create-github-app-token replacement.

Complexity: Low

Context

All 3 workflows in this repo use tibdex/github-app-token@v2 with the same pattern:

- uses: tibdex/github-app-token@v2
  id: generate-token
  with:
    app_id: ${{ secrets.LE_BOT_APP_ID }}
    private_key: ${{ secrets.LE_BOT_PRIVATE_KEY }}

Affected workflows:

  • add_contributor.yml
  • i18n-download.yml
  • update_h5p.yml

The Change

Replace tibdex/github-app-token@v2 with actions/create-github-app-token@v2 in all 3 workflows. The migration involves updating the uses line and renaming two inputs from underscores to hyphens (app_id → app-id, private_key → private-key). The output name (token) is unchanged, so no downstream references need updating.

Acceptance Criteria

  • [ ] All 3 workflows use actions/create-github-app-token@v2 instead of tibdex/github-app-token@v2
  • [ ] Input parameters updated from app_id/private_key to app-id/private-key
  • [ ] No remaining references to tibdex in the repository

References

  • Replacement action: https://github.com/actions/create-github-app-token

🤖 This issue was written with AI assistance, under supervision, review and final edits by [@rtibbles] 🤖

rtibbles avatar Feb 18 '26 21:02 rtibbles

Implementation Plan

Single-phase change — update 3 GitHub Actions workflow files to migrate from the deprecated tibdex/github-app-token@v2 to the official actions/create-github-app-token@v2.

Files to modify

  1. .github/workflows/add_contributor.yml
  2. .github/workflows/i18n-download.yml
  3. .github/workflows/update_h5p.yml

Changes per file

  • Replace uses: tibdex/github-app-token@v2 → uses: actions/create-github-app-token@v2
  • Rename input app_id → app-id
  • Rename input private_key → private-key
  • Output name (token) is unchanged — no downstream updates needed

Verification

  • Grep the repo for any remaining tibdex references
  • Validate YAML syntax via pre-commit hooks

rtibblesbot avatar Feb 18 '26 21:02 rtibblesbot

Progress: Phase 1 Complete — Workflow Migration

All 3 workflow files have been migrated from tibdex/github-app-token@v2 to actions/create-github-app-token@v2:

Changes made

File Change
.github/workflows/add_contributor.yml uses: updated, app_id → app-id, private_key → private-key
.github/workflows/i18n-download.yml uses: updated, app_id → app-id, private_key → private-key
.github/workflows/update_h5p.yml uses: updated, app_id → app-id, private_key → private-key

Verification

  • No remaining tibdex references — grep -r tibdex .github/ returns 0 matches
  • YAML syntax valid — pre-commit run check-yaml passes on all 3 files
  • Pre-commit hooks pass — trailing-whitespace, check-yaml, end-of-file-fixer all pass
  • Output name unchanged — all downstream steps.generate-token.outputs.token references remain valid since actions/create-github-app-token@v2 uses the same token output name

Commit: 4fda0c78b3 on branch issue-14205-046807

rtibblesbot avatar Feb 18 '26 21:02 rtibblesbot

Self-review completed for the tibdex/github-app-token → actions/create-github-app-token migration.

What the self-review found:

  • No blocking issues, no suggestions
  • All 3 workflows correctly migrated with matching input parameter renames (app_id → app-id, private_key → private-key)
  • Output name token is unchanged — all downstream references remain valid
  • YAML lint, trailing whitespace, and end-of-file checks all pass
  • No remaining tibdex references in the repo

What was fixed: Nothing — the implementation was clean on first pass.

Remaining concerns: None.

rtibblesbot avatar Feb 18 '26 21:02 rtibblesbot

Fixed in #14206

rtibbles avatar Feb 18 '26 21:02 rtibbles