Skip to content

Commit 288004b

Browse files
agjsclaude
andcommitted
fix(ci): ship email templates + unblock dependabot PRs
Three coordinated fixes for the CI failures stacking up: 1. apps/api/.dockerignore: `dist` matched at any depth, silently stripping out src/templates/email/dist/ (the compiled JSON email templates). The full-stack-smoke test then failed at register-time with "Email template 'auth/confirm-your-email' not found". Add an `!src/templates/email/dist` exception. 2. apps-ui-bundle-diff.yml: skip size-diff for Dependabot PRs. The action fails with "Parameter token or opts.auth is required" because Dependabot's GITHUB_TOKEN is read-only. The comment isn't useful on bot bumps anyway. Guard with `if: github.actor != 'dependabot[bot]'`. 3. Strip pull_request: paths: filters from all 12 required-check workflows. Only the `validate` job had no PR-side path filter, so it was the only required check that ran on every PR — the other 8 never posted a status for PRs outside their paths, leaving every Dependabot PR BLOCKED on missing required checks forever. Push-side paths filters stay, so main-branch CI remains targeted. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4575059 commit 288004b

14 files changed

Lines changed: 19 additions & 36 deletions

.github/workflows/apps-api-ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77
- "apps/api/**"
88
- ".github/workflows/apps-api-ci.yml"
99
pull_request:
10-
paths:
11-
- "apps/api/**"
12-
- ".github/workflows/apps-api-ci.yml"
10+
branches: [main]
1311

1412
# Cancel in-flight runs of the same ref on a new push.
1513
concurrency:

.github/workflows/apps-api-security-deps.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77
- "apps/api/**"
88
- ".github/workflows/apps-api-security-deps.yml"
99
pull_request:
10-
paths:
11-
- "apps/api/**"
12-
- ".github/workflows/apps-api-security-deps.yml"
10+
branches: [main]
1311
schedule:
1412
- cron: "23 6 * * 1"
1513

.github/workflows/apps-api-security-sast.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77
- "apps/api/**"
88
- ".github/workflows/apps-api-security-sast.yml"
99
pull_request:
10-
paths:
11-
- "apps/api/**"
12-
- ".github/workflows/apps-api-security-sast.yml"
10+
branches: [main]
1311
schedule:
1412
- cron: "29 6 * * 1"
1513

.github/workflows/apps-api-security-secrets.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77
- "apps/api/**"
88
- ".github/workflows/apps-api-security-secrets.yml"
99
pull_request:
10-
paths:
11-
- "apps/api/**"
12-
- ".github/workflows/apps-api-security-secrets.yml"
10+
branches: [main]
1311
schedule:
1412
- cron: "17 6 * * 1"
1513

.github/workflows/apps-docs-security-deps.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77
- "apps/docs/**"
88
- ".github/workflows/apps-docs-security-deps.yml"
99
pull_request:
10-
paths:
11-
- "apps/docs/**"
12-
- ".github/workflows/apps-docs-security-deps.yml"
10+
branches: [main]
1311
schedule:
1412
- cron: "23 6 * * 1"
1513

.github/workflows/apps-docs-security-secrets.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77
- "apps/docs/**"
88
- ".github/workflows/apps-docs-security-secrets.yml"
99
pull_request:
10-
paths:
11-
- "apps/docs/**"
12-
- ".github/workflows/apps-docs-security-secrets.yml"
10+
branches: [main]
1311
schedule:
1412
- cron: "17 6 * * 1"
1513

.github/workflows/apps-ui-bundle-diff.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ permissions:
2020

2121
jobs:
2222
size-diff:
23+
# Dependabot PRs run with a read-only GITHUB_TOKEN, so the size-limit-action
24+
# can't post the comparison comment and fails with "Parameter token or
25+
# opts.auth is required". The comment isn't useful on bot bumps anyway.
26+
if: github.actor != 'dependabot[bot]'
2327
defaults:
2428
run:
2529
working-directory: apps/ui

.github/workflows/apps-ui-security-deps.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77
- "apps/ui/**"
88
- ".github/workflows/apps-ui-security-deps.yml"
99
pull_request:
10-
paths:
11-
- "apps/ui/**"
12-
- ".github/workflows/apps-ui-security-deps.yml"
10+
branches: [main]
1311
schedule:
1412
- cron: "23 6 * * 1"
1513

.github/workflows/apps-ui-security-sast.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77
- "apps/ui/**"
88
- ".github/workflows/apps-ui-security-sast.yml"
99
pull_request:
10-
paths:
11-
- "apps/ui/**"
12-
- ".github/workflows/apps-ui-security-sast.yml"
10+
branches: [main]
1311
schedule:
1412
- cron: "29 6 * * 1"
1513

.github/workflows/apps-ui-security-secrets.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ on:
77
- "apps/ui/**"
88
- ".github/workflows/apps-ui-security-secrets.yml"
99
pull_request:
10-
paths:
11-
- "apps/ui/**"
12-
- ".github/workflows/apps-ui-security-secrets.yml"
10+
branches: [main]
1311
schedule:
1412
- cron: "17 6 * * 1"
1513

0 commit comments

Comments
 (0)