Skip to content

feat: Add CodeSecurity to SecurityAndAnalysis#4155

Open
omerd wants to merge 2 commits intogoogle:masterfrom
omerd:add-code-security-field
Open

feat: Add CodeSecurity to SecurityAndAnalysis#4155
omerd wants to merge 2 commits intogoogle:masterfrom
omerd:add-code-security-field

Conversation

@omerd
Copy link
Copy Markdown

@omerd omerd commented Apr 15, 2026

Summary

  • Add missing code_security field to SecurityAndAnalysis struct to match the GitHub API response
  • Add CodeSecurity struct with Status field (same pattern as other security fields like DependabotSecurityUpdates)
  • Auto-generated accessor methods via script/generate.sh

Fixes #4154

omerd added 2 commits April 15, 2026 12:30
Add the missing `code_security` field to `SecurityAndAnalysis` struct
to match the GitHub API response. This field indicates whether code
security is enabled or disabled for a repository.

Fixes google#4154.
@omerd omerd changed the title feat: Add CodeSecurity field to SecurityAndAnalysis feat: Add CodeSecurity to SecurityAndAnalysis Apr 15, 2026
@gmlewis gmlewis changed the title feat: Add CodeSecurity to SecurityAndAnalysis feat: Add CodeSecurity to SecurityAndAnalysis Apr 15, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.76%. Comparing base (44908ea) to head (b647eda).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4155   +/-   ##
=======================================
  Coverage   93.76%   93.76%           
=======================================
  Files         211      211           
  Lines       19701    19703    +2     
=======================================
+ Hits        18472    18474    +2     
  Misses       1031     1031           
  Partials      198      198           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

code_security field missing in SecurityAndAnalysis struct

2 participants