Skip to content

Fix Android Release workflow: replace expired GH_TOKEN with built-in github.token#354

Merged
valterc merged 3 commits into
mainfrom
copilot/fix-failing-github-actions-job
Jul 17, 2026
Merged

Fix Android Release workflow: replace expired GH_TOKEN with built-in github.token#354
valterc merged 3 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

The Android Release CI job was failing with HttpError: Bad credentials because secrets.GH_TOKEN (a custom PAT) had expired or been revoked.

Changes

  • .github/workflows/android-release.yml: Replace ${{ secrets.GH_TOKEN }} with ${{ github.token }} in all four steps that use it:
    • cardinalby/git-get-release-action (read release by tag)
    • Three svenstaro/upload-release-action steps (upload APK, icon, manifest)
# Before
env:
  GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

# After
env:
  GITHUB_TOKEN: ${{ github.token }}

The built-in github.token is auto-provisioned per run with sufficient permissions to read and write releases on the same repository, eliminating the dependency on a manually managed PAT.

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job build Fix Android Release workflow: replace expired GH_TOKEN with built-in github.token Jul 17, 2026
Copilot AI requested a review from valterc July 17, 2026 14:35
@valterc
valterc marked this pull request as ready for review July 17, 2026 14:42
@valterc
valterc enabled auto-merge (squash) July 17, 2026 14:42
@valterc
valterc disabled auto-merge July 17, 2026 14:43
@valterc
valterc merged commit 8fa5370 into main Jul 17, 2026
1 check passed
@valterc
valterc deleted the copilot/fix-failing-github-actions-job branch July 17, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants