-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(github): add immutable releases check #9162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(github): add immutable releases check #9162
Conversation
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
|
Thanks @Sakeeb91 for the contribution! I'll take a look to this next week 👍 |
prowler/providers/github/services/repository/repository_immutable_releases_enabled/__init__.py
Outdated
Show resolved
Hide resolved
...ry/repository_immutable_releases_enabled/repository_immutable_releases_enabled.metadata.json
Outdated
Show resolved
Hide resolved
...ry/repository_immutable_releases_enabled/repository_immutable_releases_enabled.metadata.json
Outdated
Show resolved
Hide resolved
...ry/repository_immutable_releases_enabled/repository_immutable_releases_enabled.metadata.json
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #9162 +/- ##
===========================================
- Coverage 92.58% 78.02% -14.56%
===========================================
Files 154 30 -124
Lines 21271 1065 -20206
===========================================
- Hits 19693 831 -18862
+ Misses 1578 234 -1344
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|

Closes #9084
Summary
repository_immutable_releases_enabledGitHub repository check that reports PASS/FAIL when immutable releases are enforced/repos/{owner}/{repo}/immutabilityREST endpoint using existing auth and expose the result on the repository modelImplementation Details
_get_repository_immutable_releases_statusto retrieve the immutability flag, handling 404 (not available) and 403 (insufficient permissions) responses without failing the scan_normalize_immutability_valueand_parse_immutability_response, covering both boolean and string states as well as nested payloadsTesting