Skip to content

Protect guarded release tags - #182

Merged
josephbirkner merged 2 commits into
mainfrom
ci/protect-release-tags
Jul 23, 2026
Merged

Protect guarded release tags#182
josephbirkner merged 2 commits into
mainfrom
ci/protect-release-tags

Conversation

@josephbirkner

Copy link
Copy Markdown
Contributor

Summary

GitHub does not allow its built-in github-actions[bot] identity to bypass repository rulesets. This completes the guarded-release setup by making the release workflow's tag push use a dedicated write deploy key.

  • use MAPGET_RELEASE_DEPLOY_KEY only while creating the validated release tag
  • populate known_hosts from GitHub's authenticated metadata endpoint
  • keep GitHub release creation and workflow dispatch on the scoped GITHUB_TOKEN
  • document how the workflow-owned release-tag rule is enforced

The matching deploy key and encrypted Actions secret are configured in the repository. Once this is merged, the v*.*.* tag ruleset can be activated with deploy keys as its sole bypass actor.

Validation

  • YAML parsing with PyYAML
  • actionlint v1.7.12
  • git diff --check

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Package Line Rate Branch Rate Health
libs.geojsonsource.include.geojsonsource 100% 50% βœ”
libs.geojsonsource.src 66% 38% βž–
libs.gridsource.include.gridsource 0% 0% ❌
libs.gridsource.src 0% 0% ❌
libs.http-datasource.src 48% 26% ❌
libs.http-service.src 58% 24% βž–
libs.location.include.mapget.location 100% 100% βœ”
libs.location.src 83% 40% βœ”
libs.logging.include.mapget 5% 2% ❌
libs.model.include.mapget.model 51% 30% βž–
libs.model.src 73% 42% βž–
libs.service.include.mapget.service 56% 50% βž–
libs.service.src 74% 38% βž–
Summary 65% (12147 / 18562) 35% (12923 / 37286) βž–

Minimum allowed line rate is 50%

@josephbirkner
josephbirkner marked this pull request as ready for review July 23, 2026 14:39
@josephbirkner
josephbirkner merged commit 355093f into main Jul 23, 2026
19 checks passed
@josephbirkner
josephbirkner deleted the ci/protect-release-tags branch July 23, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant