Commit 93aac16
authored
feat(bzlmod-lock-check): split into two jobs, add lockfile check, guard against pull_request_target (#122)
- Split single job into bzlmod-tidy-check and bzlmod-lockfile-check so
both results are reported independently in the PR checks UI
- Add `bazel mod deps --lockfile_mode=error` to verify the committed
lockfile matches the resolved dependency graph
- Add explicit guard step that fails (not skips) when called from
pull_request_target, which would otherwise run Bazel on untrusted fork
code with access to repository secrets
- Remove unsafe fork checkout (head_ref + fork repository override)
in favor of the default checkout, which is safe for pull_request and
schedule events
- Add header documentation with pre-commit alternative and security note
- Update README section 16 to reflect both jobs, the security constraint,
and the pre-commit recommendation1 parent af34772 commit 93aac16
2 files changed
Lines changed: 97 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
14 | 41 | | |
15 | 42 | | |
16 | 43 | | |
| |||
23 | 50 | | |
24 | 51 | | |
25 | 52 | | |
26 | | - | |
| 53 | + | |
27 | 54 | | |
28 | 55 | | |
29 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
30 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
31 | 70 | | |
32 | | - | |
33 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
34 | 96 | | |
35 | 97 | | |
36 | 98 | | |
| |||
40 | 102 | | |
41 | 103 | | |
42 | 104 | | |
43 | | - | |
| 105 | + | |
44 | 106 | | |
45 | 107 | | |
46 | 108 | | |
| |||
53 | 115 | | |
54 | 116 | | |
55 | 117 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 118 | + | |
61 | 119 | | |
62 | | - | |
| 120 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
515 | 537 | | |
516 | 538 | | |
517 | 539 | | |
| |||
528 | 550 | | |
529 | 551 | | |
530 | 552 | | |
531 | | - | |
| 553 | + | |
532 | 554 | | |
533 | 555 | | |
534 | 556 | | |
535 | | - | |
| 557 | + | |
536 | 558 | | |
537 | 559 | | |
538 | 560 | | |
539 | | - | |
540 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
541 | 564 | | |
542 | 565 | | |
543 | 566 | | |
| |||
0 commit comments