Skip to content

Commit 2eecb39

Browse files
author
gHashTag
committed
ci: bypass L1/Issue/NOW gates for trusted bots
Closes #1059 Dependabot PRs (#1057 rusqlite, #1058 chrono) fail three gates by design: - L1 TRACEABILITY (commits need Closes #N) - Issue Gate (PR body needs Closes|Fixes|Resolves #N) - NOW Sync Gate (docs/NOW.md must change) Bots maintain deps -- not features -- and cannot reference issues. Adds job-level guard: if: github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' Effect: gates are SKIPPED (not FAILED) for trusted bot actors. Constitutional Law L1 still enforced for all human PRs. The L1 summary job now reports 'Skipped (trusted bot actor)' for clarity.
1 parent 00e92fe commit 2eecb39

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/issue-gate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ permissions:
1212
jobs:
1313
check-linked-issue:
1414
runs-on: ubuntu-latest
15+
# Closes #1059: bypass Issue Gate for trusted bots (Dependabot opens dep PRs without issues)
16+
if: github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]'
1517
steps:
1618
- name: Check for linked issues in PR
1719
env:

.github/workflows/l1-traceability.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
check-traceability:
99
name: Check L1 TRACEABILITY
1010
runs-on: ubuntu-latest
11+
# Closes #1059: bypass L1 gate for trusted bots (Dependabot maintains deps, not features)
12+
if: github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]'
1113
steps:
1214
- name: Checkout repository
1315
uses: actions/checkout@v4
@@ -138,6 +140,8 @@ jobs:
138140
echo "### L1 TRACEABILITY Check Results" >> $GITHUB_STEP_SUMMARY
139141
if [ "${{ needs.check-traceability.result }}" = "success" ]; then
140142
echo "✅ All commits comply with L1 TRACEABILITY" >> $GITHUB_STEP_SUMMARY
143+
elif [ "${{ needs.check-traceability.result }}" = "skipped" ]; then
144+
echo "⏭️ L1 TRACEABILITY check skipped (trusted bot actor)" >> $GITHUB_STEP_SUMMARY
141145
else
142146
echo "❌ L1 TRACEABILITY violations detected" >> $GITHUB_STEP_SUMMARY
143147
echo "" >> $GITHUB_STEP_SUMMARY

.github/workflows/now-sync-gate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
check-now-freshness:
1010
runs-on: ubuntu-latest
11+
# Closes #1059: bypass NOW Sync Gate for trusted bots (deps PRs don't touch docs/NOW.md)
12+
if: github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]'
1113
steps:
1214
- uses: actions/checkout@v4
1315
with:

0 commit comments

Comments
 (0)