digitalservicebund/Generate tbls ER Report (PostgreSQL)

Checks out Flyway/SQL migration files from a configurable source repo, applies them against a throwaway PostgreSQL database running in an isolated Docker network (no outbound internet), documents the resulting schema with tbls (Markdown + Mermaid ERD), and uploads the output to an S3 bucket via digitalservicebund/add-ris-report.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 8, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: digitalservicebund/generate-tbls-er-report@b5c32596ab4529e5b3ef84a90de83ddf5633f791 # no releases — HEAD as of 2026-07-11

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
source_repoSource repository containing migration files (org/repo)yes
source_refGit ref in source repo to check out (branch / tag / SHA — prefer a SHA)yes
database_nameName of the database (used as title in generated docs)yes
database_descDescription of the database (shown in generated docs)yes
migrations_pathPath to the Flyway migration folder inside the source repoyes
destination_pathDestination path in the S3 bucket where artifacts are uploadedyes
BUCKET_ACCESS_KEY_IDS3 bucket access key ID. Required when skip_publish is false.no""
BUCKET_SECRET_ACCESS_KEYS3 bucket secret access key. Required when skip_publish is false.no""
skip_publishSet to 'true' to skip uploading artifacts to S3 (useful for testing).nofalse
flyway_versionflyway/flyway Docker image tagno10
postgres_versionpostgres Docker image tagno14
postgres_extensionsComma-separated list of PostgreSQL extensions to enable before running migrations (e.g. "uuid-ossp,pg_trgm"). Each is created with CREATE EXTENSION IF NOT EXISTS inside the docdb database. no""
tbls_versionk1low/tbls Docker image tagnov1.94.5
tbls_configtbls YAML config string. dsn, docPath, name, and desc are always injected automatically and will override any values provided here. noformat: adjust: true er: format: mermaid
local_artifact_pathDirectory (relative to the source repo root) where tbls writes its outputno_tbls_generated
GH_TOKENGitHub token for checking out private source repos. Defaults to GITHUB_TOKEN.no""
slack_channel_idSlack channel ID for failure notifications. Requires SLACK_BOT_TOKEN.no""
SLACK_BOT_TOKENSlack bot token used for failure notifications.no""

no outputs