GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Release from a protected environment and push the README with a GitHub App by lhotari · Pull Request #24 · jonoffcpu/jonoffcpu

Conversation

@lhotari

@lhotari lhotari commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • publish uses environment: release. The Maven Central and signing secrets now live in that environment, which admits only v* tags and requires a maintainer's approval.
  • update-readme uses the same environment. It gets a short-lived token from actions/create-github-app-token@v3 (the RELEASE_APP_CLIENT_ID organization secret and the RELEASE_APP_PRIVATE_KEY environment secret), and that token can only write repository contents. The job checks out and pushes the README update with it, commits as <app-slug>[bot], and no longer needs contents: write on GITHUB_TOKEN. The release app can be on the main branch ruleset's bypass list, and its push triggers CI on the README commit.
  • RELEASING.md documents the release environment, its secrets, the release app, and GRADLE_ENCRYPTION_KEY.
  • .github/actionlint.yaml ignores two actionlint errors about create-github-app-token in release.yml. actionlint 1.7.12's bundled metadata for that action is older than its client-id input.

Setup this depends on

  • The release GitHub App is installed on jonoffcpu/jonoffcpu and has the Contents read and write permission.
  • The app is on the bypass list of the main ruleset when the ruleset is active.
  • The release environment holds MAVEN_CENTRAL_USERNAME, MAVEN_CENTRAL_PASSWORD, SIGNING_IN_MEMORY_KEY, SIGNING_IN_MEMORY_KEY_ID, SIGNING_IN_MEMORY_KEY_PASSWORD and RELEASE_APP_PRIVATE_KEY, and no repository or organization copies of these remain.

Each release waits for two approvals, one for publish and one for update-readme.

Verification

  • actionlint 1.7.12 (local and the pinned Docker image) and zizmor 1.30.1 with online audits pass.
  • The environment and the app token are only exercised by the next v* tag.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lhotari
Release from a protected environment and push the README with a GitHu…
64dc433
…b App

The publish job now reads the Maven Central and signing secrets from the
protected `release` environment, which admits only v* tags and waits
for a maintainer's approval, so no other workflow, branch or job can
read them.

The README version update is pushed with a short-lived token of the
release GitHub App instead of GITHUB_TOKEN: the app is on the bypass
list of the main branch ruleset, the token can only write repository
contents, and its push triggers CI on the README commit. The job reads
the app's private key from the same environment, commits as the app's
bot user and no longer needs contents: write on GITHUB_TOKEN.

RELEASING.md describes the environment, its secrets and the release
app. actionlint's bundled metadata of create-github-app-token predates
its client-id input, so the two resulting errors are ignored for the
release workflow.
@lhotari lhotari added the maintenance Build, CI, dependency and other maintenance changes label Sep 24, 2026
@lhotari
lhotari merged commit 0ed19cf into main Sep 24, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@lhotari
lhotari deleted the release-environment-and-app-token branch September 24, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

maintenance Build, CI, dependency and other maintenance changes

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@lhotari
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.