Skip to content

feat(cycle): security-feature enforcement cycle (#13)#27

Merged
lex00 merged 1 commit into
mainfrom
feat/security-features-cycle
Jun 19, 2026
Merged

feat(cycle): security-feature enforcement cycle (#13)#27
lex00 merged 1 commit into
mainfrom
feat/security-features-cycle

Conversation

@lex00

@lex00 lex00 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Closes #13. First of the post-publish backlog cycles.

Adds the security-features cycle — enforces repo security posture.

What it does

  • security_and_analysis (PATCH /repos/{o}/{r}): advanced security, secret scanning, secret-scanning push protection.
  • Dependabot vulnerability alerts (vulnerability-alerts endpoint, 204/404 semantics).
  • Dependabot automated security fixes (automated-security-fixes endpoint).

New types

  • Config: RepoSecurityConfig on RepoConfig.security.
  • Diff: LiveRepoSecurity + diffRepoSecurity → new repo-security resource type (object diff, like org-settings but per-repo), added to RESOURCE_TYPE_ORDER.

License-gated graceful degradation

GHAS features require a license. When unavailable GitHub rejects the enabling PATCH — that surfaces as a reported failed entry in the cycle result (the runner continues past it), not a crash. A test asserts a 422 "Advanced Security is not available" lands in cr.failed while the run still completes.

Verification

  • npx tsc --noEmit clean
  • npm test green (343 tests; +15 in security-features.test.ts)
  • Action bundle rebuilt for the CI freshness check

🤖 Generated with Claude Code

Reconciles repo security features: advanced security / secret scanning /
push protection via security_and_analysis PATCH, plus Dependabot
vulnerability-alerts and automated-security-fixes via their dedicated
endpoints. New RepoSecurityConfig + LiveRepoSecurity + repo-security diff
type. License-gated writes surface as reported failed entries, not crashes.

Registered, exported, action bundle rebuilt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lex00 lex00 merged commit f553b00 into main Jun 19, 2026
2 checks passed
@lex00 lex00 mentioned this pull request Jun 19, 2026
1 task
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.

cycle: security feature enforcement

1 participant