Skip to content

Commit 43b6563

Browse files
fix: checkout caller's repo in governance-reusable workflow
All 6 governance jobs now check out the caller's repository instead of the standards repo by default. This allows .hypatia-ignore and other caller-specific files to be found during governance checks. Fixes gitbot-fleet#198 governance/language-policy failures where .hypatia-ignore exemptions were not being honored. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
1 parent 66271d3 commit 43b6563

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/governance-reusable.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
contents: read
4545
steps:
4646
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
47+
with:
48+
repository: ${{ github.repository }}
49+
ref: ${{ github.ref }}
4750

4851
- name: Check for TypeScript
4952
run: |
@@ -252,6 +255,9 @@ jobs:
252255
contents: read
253256
steps:
254257
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
258+
with:
259+
repository: ${{ github.repository }}
260+
ref: ${{ github.ref }}
255261
- name: Enforce Guix primary / Nix fallback
256262
run: |
257263
HAS_GUIX=$(find . -name "*.scm" -o -name ".guix-channel" -o -name "guix.scm" 2>/dev/null | head -1)
@@ -276,6 +282,9 @@ jobs:
276282
contents: read
277283
steps:
278284
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
285+
with:
286+
repository: ${{ github.repository }}
287+
ref: ${{ github.ref }}
279288
- name: Security checks
280289
run: |
281290
FAILED=false
@@ -359,6 +368,9 @@ jobs:
359368
contents: read
360369
steps:
361370
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
371+
with:
372+
repository: ${{ github.repository }}
373+
ref: ${{ github.ref }}
362374
- name: Check file permissions
363375
run: |
364376
find . -type f -perm /111 -name "*.sh" | head -10 || true
@@ -404,6 +416,9 @@ jobs:
404416
contents: read
405417
steps:
406418
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
419+
with:
420+
repository: ${{ github.repository }}
421+
ref: ${{ github.ref }}
407422
- name: RFC 9116 security.txt validation
408423
run: |
409424
SECTXT=""
@@ -458,6 +473,9 @@ jobs:
458473
contents: read
459474
steps:
460475
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
476+
with:
477+
repository: ${{ github.repository }}
478+
ref: ${{ github.ref }}
461479
- name: Check SPDX headers + permissions
462480
run: |
463481
failed=0

0 commit comments

Comments
 (0)