Skip to content

ci: push release and CLA signature commits with the LinkForty bot app token - #103

Merged
onamfc merged 1 commit into
mainfrom
ci/github-app-token
Nov 7, 2026
Merged

onamfc merged 1 commit into
mainfrom
ci/github-app-token

Conversation

@onamfc

@onamfc onamfc commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Why

main is getting a ruleset that requires a pull request and the cla and CI Success checks. Two workflows push to main directly and need to bypass it:

  • release.yml: semantic-release pushes the version bump, CHANGELOG.md and the tag.
  • cla.yml: the CLA action records each signature in signatures/cla.json.

What changes

  • Both workflows mint an installation token for the organization's linkforty-bot GitHub App with actions/create-github-app-token@v2 and push with that. The app is the ruleset's bypass actor.
  • release.yml checks out and runs semantic-release with the app token. The [skip ci] already in the release commit message keeps that push from starting another CI or release run.
  • cla.yml passes the app token as PERSONAL_ACCESS_TOKEN and no longer reads CLA_ASSISTANT_PAT.

Verification

The cla check on this PR runs main's copy of the workflow (pull_request_target), so the new steps first run on the next PR after this merges, and the release path runs on the merge itself.

… token

The release workflow and the CLA workflow both commit straight to main: semantic-release pushes the version bump, changelog and tag, and the CLA action records each signature in signatures/cla.json. Once main carries a ruleset that requires a pull request, those pushes need a bypass actor. GitHub refuses to add the workflow's own GITHUB_TOKEN (the GitHub Actions integration) to a ruleset's bypass list on an organization repository, so both workflows now mint an installation token for the organization's GitHub App and push with that. The app is the bypass actor instead.

Requires the LINKFORTY_BOT_APP_ID and LINKFORTY_BOT_PRIVATE_KEY secrets. The CLA workflow no longer reads CLA_ASSISTANT_PAT.
@codecov

codecov Bot commented Nov 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@onamfc
onamfc merged commit 0ddcd39 into main Nov 7, 2026
13 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant