Repository navigation
CID-5992: read-only default permissions for gradle-build workflow - #164
Merged
AlperCezibarakLeanix merged 2 commits intoDec 2, 2026
Merged
Conversation
… read-only gradle-build permissions)
alfredo-mfaria
approved these changes
Dec 2, 2026
AlperCezibarakLeanix
temporarily deployed
to
ghcr:leanix-github-agent
December 2, 2026 13:17 — with
GitHub Actions
Inactive
AlperCezibarakLeanix
deleted the
feature/CID-5992/github-hardening-controls
branch
December 2, 2026 13:17
This branch was previously 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.
CID-5992 — GitHub Hardening Controls (Project Granite)
Gap analysis of this repo against SAP OSPO GitHub Hardening Controls. This PR applies the one code-level hardening change in scope.
Change
gradle-build.yml(permissions: contents: read). It was the only workflow without an explicitpermissions:block (per CPAWGOSS-1209, the "must remediate" class). Its jobs only build/test, so read-only is sufficient. Validated by two independent reviews: no step needs more thancontents: read.Gap analysis result (no other code changes needed)
pull_request_target✅ · Control 4 0 stored secrets, onlyGITHUB_TOKEN✅ · Control 5 no release branches (releases are tags offmain) ✅ · Control 8 active ✅.Out of scope here
K-Phoen/semver-release-action,release-drafter/release-drafter) are tracked separately in CID-5993 (remove/replace, both repos). An earlier commit on this branch that SHA-pinnedsemver-release-actionhas been reverted — pinning an unapproved action does not satisfy the allow-list; it must be removed/replaced under CID-5993.Needs repo-admin (not code)
@leanix/team-cider≤ Write unless Admin needed, minimal admins, no bot/app with Admin.