Skip to content

Fix CI workflows, switch GCP auth to WIF, add linting, and document PR workflow - #4

Merged
seanlip merged 2 commits into
developfrom
ci-updates
Nov 25, 2026
Merged

seanlip merged 2 commits into
developfrom
ci-updates

Conversation

@seanlip

@seanlip seanlip commented Nov 25, 2026

Copy link
Copy Markdown
Member

Fixes two CI failures and hardens the repo's GitHub Actions and contribution setup:

  1. Weekly production run fix (weekly_run.yml): Added requirements.txt and requirements-dev.txt (minor-pinning dbt-core and dbt-bigquery) so actions/setup-python@v5 pip caching works reliably across both workflows.

  2. Fork-PR & GCP auth hardening (pr_validation.yml, weekly_run.yml):

  • Migrated from a single shared static GCP_SERVICE_ACCOUNT_KEY to keyless GCP Workload Identity Federation (google-github-actions/auth@v3) with separate test and prod credentials.
  • Split PR CI into Static Checks (Lint & dbt Parse) (runs offline on all PRs) and BigQuery Build & Test (serialized via concurrency group; fails cleanly with instructions on fork PRs; skipped on Dependabot PRs since GitHub blocks OIDC on bot PRs).
  1. Linting & repo automation:
  • Added .sqlfluff (BigQuery dialect, offline Jinja templater), .yamllint.yml, .github/CODEOWNERS, and .github/dependabot.yml.
  • Fixed existing lint issues in 02_new_feature.yml (unquoted # truncated placeholder), 04_new_cuj.yml (trailing space), and stg_web_analytics__events.sql (WHERE formatting).
  1. Docs: Added CONTRIBUTING.md (how to open/review PRs + WIF IAM reference) and updated README.md and models/README.md.

Verification
yamllint --strict . passed locally.
sqlfluff lint models/ passed locally.
dbt deps and offline dbt parse passed locally with dbt-core 1.12.7 and dbt-bigquery 1.12.4.

@seanlip

seanlip commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

Merging this to unblock @RicMorgado's workflow.

@seanlip
seanlip merged commit 7183de6 into develop Nov 25, 2026
2 checks passed
@seanlip
seanlip deleted the ci-updates branch November 25, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant