Skip to content

[codex] honor enforced org security config#39

Merged
xiaojiou176 merged 1 commit intomainfrom
codex/cortexpilot-org-config-fallback
Apr 7, 2026
Merged

[codex] honor enforced org security config#39
xiaojiou176 merged 1 commit intomainfrom
codex/cortexpilot-org-config-fallback

Conversation

@xiaojiou176
Copy link
Copy Markdown
Member

Summary

  • teach the GitHub control-plane checker to accept enforced org code-security configuration evidence for secret-scanning subfeatures
  • keep the policy explicit by recording the org configuration id and repository enforcement status in the repo-owned control-plane contract
  • add coverage for both the strict-fail and org-enforced fallback paths

Test Plan

  • ... [100%]
    3 passed in 0.34s
  • ❌ [github-control-plane] violations:
  • gh api repo fetch failed: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest', 'status': '401'}
  • gh api actions permissions failed: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest', 'status': '401'}
  • gh api environments failed: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest', 'status': '401'}
  • branch protection unavailable or mismatched: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest', 'status': '401'}
  • private vulnerability reporting not proven: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest', 'status': '401'}
  • vulnerability alerts not proven: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest', 'status': '401'}
  • secret_scanning drift: actual='missing' expected='enabled'
  • secret_scanning_push_protection drift: actual='missing' expected='enabled'
  • secret_scanning_non_provider_patterns drift: actual='missing' expected='enabled'
  • secret_scanning_validity_checks drift: actual='missing' expected='enabled'
  • org code-security configuration not proven: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest', 'status': '401'}
  • dependabot alerts not proven: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest', 'status': '401'}

Breaking Changes

None

@xiaojiou176 xiaojiou176 merged commit d6b954e into main Apr 7, 2026
13 checks passed
@xiaojiou176 xiaojiou176 deleted the codex/cortexpilot-org-config-fallback branch April 7, 2026 21:34
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