Repository navigation
ci(publish): announce a published testing release to subscribers - #187
Draft
WolfangAukang wants to merge 1 commit into
Draft
WolfangAukang wants to merge 1 commit into
WolfangAukang wants to merge 1 commit into
Conversation
After the Grype gate that already guards the promote, send a release-published repository_dispatch with the version and tag to the repositories that follow releases. The repositories and the GitHub App that signs the token come from secrets in the testing environment; the job is a no-op until they are set. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Other repositories need to act on a testing release once it is published and has passed the scan, without polling Docker Hub for it. A tag on Docker Hub is not enough: the tags are pushed before the Grype scan runs.
What
publish-testing.ymlgets anotify-subscribersjob. It sends arelease-publishedrepository_dispatchwith{version, tag}to each repository that follows releases.promote: it needsscan-minimal, so a release that fails Grype is never announced, and it is skipped on a dry run.contents: write(whatrepository_dispatchneeds).actions/create-github-app-tokenis pinned to the v3.3.0 commit. The job itself haspermissions: {}.testingEnvironment, which only thetestingbranch can use.RELEASE_NOTIFY_CLIENT_IDthe job logs a notice and does nothing.Configuration
Secrets in the
testingEnvironment:RELEASE_NOTIFY_CLIENT_ID: the GitHub App's client idRELEASE_NOTIFY_PRIVATE_KEY: the App's private keyRELEASE_NOTIFY_REPOSITORIES: comma-separated repository names in this orgTesting
notify-subscriberssucceeds.🤖 Generated with Claude Code