Repository navigation
Conversation
The rulesets only let deploy keys create tags and push to main, so the release script now pushes the tag and the construct.yaml bump with git over SSH, using a write deploy key held in the `release` environment. The GitHub release and its assets use the GITHUB_TOKEN on the tag that already exists. Assisted-by: Claude:claude-fable-5-2
11 of 39 tasks
Contributor
Author
|
Superseded: releases will follow "CI drafts, a release manager publishes, CI ships" with no stored write credential (DIRACGrid/.github#5). The deploy key, its environment and the ruleset bypass have been removed. |
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.
Part of DIRACGrid/.github#5.
The release script creates the tag and commits the
construct.yamlbump tomainthrough the API with theGH_TOKENPAT, which thetagsandbranchesrulesets now reject.make_release.pypushes the tag and the bump with git, using a write deploy key (RELEASE_DEPLOY_KEY, environmentrelease,mainonly). Deploy keys are the bypass actor of both rulesets.GITHUB_TOKEN.GH_TOKENis no longer used.Tested against a fork with the same rulesets:
make_release()andbump_version_in_main()pushed the tag, published the release with its assets and pushed the bump. Not tested: the workflow file and the artifact download with theGITHUB_TOKEN.The environment, key and ruleset bypass are already in place (
scripts/setup_release_key.py, DIRACGrid/.github#13).🤖 Generated with Claude Code