Commit 3bee2ba
Add repository fork, GitHub Pages, and push ruleset support (#16)
* Add repository fork, GitHub Pages, and push ruleset support
- Add fork configuration to enable creating forked repositories
- Add GitHub Pages configuration with build type, CNAME, and source options
- Enable required_code_scanning ruleset rules (drift issue resolved)
- Add push ruleset target with file restrictions and size limits
- Add new ruleset rule types: required_linear_history, required_signatures, update
- Expand bypass modes and actor types for rulesets
- Add comprehensive validations for all new ruleset features
- Update GitHub provider version to 6.9.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Haiku 4.5 <[email protected]>
* Remove unsupported security_and_analysis options
Remove secret_scanning_ai_detection and secret_scanning_non_provider_patterns
as these block types are not supported by the current GitHub Terraform provider.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Update examples/complete with all new features
- Add fork variable for repository forking support
- Add pages variable for GitHub Pages configuration
- Update security_and_analysis with code_security option
- Update rulesets variable with all new options:
- Push ruleset target with file restrictions
- required_linear_history, required_signatures, update rules
- required_code_scanning support
- New bypass modes (exempt) and actor types (DeployKey)
- Add comprehensive tfvars examples:
- GitHub Pages configuration
- Tag protection ruleset
- Push restrictions ruleset with file/size limits
- Code scanning requirements
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Update examples/complete provider version to >= 6.9.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Require provider >= 6.9.0 and restore all security features
- Update provider version requirement from >= 6.6.0 to >= 6.9.0
- Re-add code_security to security_and_analysis block
- Re-add secret_scanning_ai_detection to security_and_analysis block
- Re-add secret_scanning_non_provider_patterns to security_and_analysis block
- Update examples/complete with all security options
- Update README documentation
The fork, code_security, secret_scanning_ai_detection, and
secret_scanning_non_provider_patterns features require provider
version 6.9.0 or later.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Fix push ruleset conditions - ref_name not supported for push target
Push rulesets in GitHub do not support ref_name conditions like branch
and tag rulesets do. This change makes the conditions block optional
and adds validations to ensure proper usage per ruleset target type.
* Fix file_extension_restriction format - extensions must start with *.
GitHub API requires file extensions to use the *. prefix format
(e.g., *.exe) instead of just the extension (e.g., .exe).
* Comment out push ruleset example - only supported on private repos
Push rulesets are not supported on public repositories. Since CI tests
use public repos, the push_restrictions example is now commented out
with documentation. Updated test assertions to expect 2 rulesets
(branch + tag) instead of 1.
* Fix environment count test - GitHub Pages auto-creates environment
When GitHub Pages is enabled, GitHub automatically creates a
"github-pages" environment. Updated test to expect 4 environments
(staging, development, production, github-pages).
---------
Co-authored-by: Claude Haiku 4.5 <[email protected]>1 parent a80d8a0 commit 3bee2ba
9 files changed
Lines changed: 422 additions & 102 deletions
File tree
- examples/complete
- test/src
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
34 | 46 | | |
35 | 47 | | |
36 | 48 | | |
| |||
112 | 124 | | |
113 | 125 | | |
114 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
115 | 130 | | |
116 | 131 | | |
117 | 132 | | |
| |||
172 | 187 | | |
173 | 188 | | |
174 | 189 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
178 | 197 | | |
179 | 198 | | |
180 | 199 | | |
| |||
197 | 216 | | |
198 | 217 | | |
199 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
200 | 255 | | |
201 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
202 | 292 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
| |||
209 | 218 | | |
210 | 219 | | |
211 | 220 | | |
212 | | - | |
213 | | - | |
214 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
215 | 240 | | |
216 | 241 | | |
217 | 242 | | |
| |||
400 | 425 | | |
401 | 426 | | |
402 | 427 | | |
403 | | - | |
404 | | - | |
| 428 | + | |
| 429 | + | |
405 | 430 | | |
406 | | - | |
| 431 | + | |
407 | 432 | | |
408 | 433 | | |
409 | | - | |
| 434 | + | |
410 | 435 | | |
411 | 436 | | |
412 | | - | |
| 437 | + | |
| 438 | + | |
413 | 439 | | |
414 | 440 | | |
415 | 441 | | |
416 | 442 | | |
417 | | - | |
| 443 | + | |
418 | 444 | | |
419 | 445 | | |
420 | | - | |
| 446 | + | |
421 | 447 | | |
422 | 448 | | |
423 | 449 | | |
424 | 450 | | |
425 | 451 | | |
426 | | - | |
| 452 | + | |
427 | 453 | | |
428 | 454 | | |
429 | 455 | | |
430 | 456 | | |
431 | | - | |
432 | | - | |
433 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
434 | 464 | | |
435 | 465 | | |
436 | 466 | | |
437 | 467 | | |
438 | 468 | | |
439 | | - | |
| 469 | + | |
440 | 470 | | |
441 | 471 | | |
442 | 472 | | |
443 | 473 | | |
444 | 474 | | |
445 | | - | |
| 475 | + | |
446 | 476 | | |
447 | 477 | | |
448 | 478 | | |
| |||
475 | 505 | | |
476 | 506 | | |
477 | 507 | | |
478 | | - | |
| 508 | + | |
479 | 509 | | |
480 | 510 | | |
481 | 511 | | |
482 | 512 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
491 | 533 | | |
492 | 534 | | |
493 | 535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
0 commit comments