Skip to content

chore(ci): push tags with a release GitHub App token - #41

Merged
dnlopes merged 1 commit into
mainfrom
fm/reltag-plugins-j1
Nov 9, 2026
Merged

dnlopes merged 1 commit into
mainfrom
fm/reltag-plugins-j1

Conversation

@dnlopes

@dnlopes dnlopes commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Mints a GitHub App token in the release workflow and uses it for every tag-writing path, so an org ruleset can block v* tag creation for everyone except the app.

Do not merge before the org variable RELEASE_APP_ID and the org secret RELEASE_APP_PRIVATE_KEY exist. Until then the token step fails and releases fail.

Changes in .github/workflows/release.yaml:

  • Add actions/create-github-app-token (pinned to a commit SHA, v3.3.0) with app-id: ${{ vars.RELEASE_APP_ID }} and private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}.
  • Pass the token to actions/checkout so persisted git credentials push with the app identity.
  • Pass the token as GITHUB_TOKEN to semantic-release.
  • Job permissions: are unchanged. The app needs contents, issues, and pull requests write access to match what semantic-release does.

Not changed:

  • sync-vendored-skills.yaml pushes sync/* branches and opens PRs. It writes no tags or releases, so it keeps the built-in token.
  • dependabot-merge.yaml calls the reusable workflow davidnlopes/Reusable.Workflows/.github/workflows/dependabot-merge.yaml@v1. I did not inspect it. It looks like a merge workflow, not a tag writer, but confirm in that repository.

Verification: actionlint is not installed here, so I did not run it. I checked the YAML diff by hand.

@github-actions github-actions Bot added the size-M Medium size changes label Nov 8, 2026
@dnlopes dnlopes changed the title ci(release): push tags with a release GitHub App token chore(ci): push tags with a release GitHub App token Nov 8, 2026
@dnlopes dnlopes closed this Nov 8, 2026
@dnlopes dnlopes reopened this Nov 8, 2026
@github-actions github-actions Bot added patch Backwards-compatible bug fixes chore Changes that do not modify src or test files labels Nov 8, 2026
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Trivy Security Scan Results

Note

This PR introduces no new findings.


Scan performed by Trivy v0.69.3

@dnlopes
dnlopes merged commit 2741b5f into main Nov 9, 2026
5 of 6 checks passed
@dnlopes
dnlopes deleted the fm/reltag-plugins-j1 branch November 9, 2026 00:34
@davidnlopes-release

Copy link
Copy Markdown

🎉 This PR is included in version 7.1.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@davidnlopes-release davidnlopes-release Bot added the released Issue already released label Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Changes that do not modify src or test files patch Backwards-compatible bug fixes released Issue already released size-M Medium size changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant