Skip to content

fix(ci): use GitHub App token in changelog update workflow#312

Merged
j-d-ha merged 2 commits into
mainfrom
fix/auto-update-change-log
Mar 21, 2026
Merged

fix(ci): use GitHub App token in changelog update workflow#312
j-d-ha merged 2 commits into
mainfrom
fix/auto-update-change-log

Conversation

@j-d-ha

@j-d-ha j-d-ha commented Mar 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes "cannot approve your own pull request" error in the update-changelog workflow
  • The PR created by peter-evans/create-pull-request was authored by github-actions[bot] (via GITHUB_TOKEN), so the approval step — also using GITHUB_TOKEN — was rejected by GitHub as a self-approval
  • Adds a actions/create-github-app-token step to generate a token from a dedicated GitHub App (CHANGELOG_UPDATE_ID / CHANGELOG_UPDATE_PRIVATE_KEY secrets), which authors the PR as the App bot instead
  • The approval step continues to use GITHUB_TOKEN (github-actions[bot]), now a different actor from the PR author — so the approval succeeds

✅ Checklist

  • My changes build cleanly
  • I've added/updated relevant tests
  • I've followed the coding style for this project
  • I've tested the changes locally (if applicable)

🧪 Related Issues or PRs

N/A


💬 Notes for Reviewers

Requires CHANGELOG_UPDATE_ID and CHANGELOG_UPDATE_PRIVATE_KEY repo secrets to be set before this workflow will work end-to-end.

j-d-ha added 2 commits March 20, 2026 20:21
- Updated `MinimalLambda.sln` to include `CHANGELOG.md`.
- Extended `CHANGELOG.md` with details for `v2.3.0`.
- Added `actions/create-github-app-token@v2` to generate GitHub App token.
- Replaced `GITHUB_TOKEN` with app token in checkout and PR creation steps.
@github-actions github-actions Bot added the type: fix Bug fix label Mar 21, 2026
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Mar 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #312   +/-   ##
=======================================
  Coverage   87.38%   87.38%           
=======================================
  Files         113      113           
  Lines        2814     2814           
  Branches      351      351           
=======================================
  Hits         2459     2459           
  Misses        254      254           
  Partials      101      101           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e58fa54...6f4f9d9. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@j-d-ha
j-d-ha merged commit ca36a53 into main Mar 21, 2026
8 checks passed
@j-d-ha
j-d-ha deleted the fix/auto-update-change-log branch March 21, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant