← Back to scan
File as GitHub Issue repo: getlago/lago-api

Push this scan report to getlago/lago-api

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Async function without await — fire-and-forget Promise (AI mistake)

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT SEC096 [SEC096] Rails: SQL injection via where("#{...}") or find_by_sql: ActiveRecord where() / … app/queries/customers_query.rb:76
CRIT SEC096 [SEC096] Rails: SQL injection via where("#{...}") or find_by_sql: ActiveRecord where() / … app/models/daily_usage.rb:15
CRIT SEC096 [SEC096] Rails: SQL injection via where("#{...}") or find_by_sql: ActiveRecord where() / … app/jobs/clock/terminate_ended_subscrip…:9
CRIT MINED116 [MINED116] Workflow uses `secrets.KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC` on a `pull_request… .github/workflows/spec.yml:59
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … app/models/pending_vies_check.rb:25
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … app/models/concerns/organizations/authe…:50
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … app/graphql/types/base_input_object.rb:16
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… app/models/credit_note.rb:91
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… app/models/billing_entity.rb:125
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… app/graphql/resolvers/auth/google/auth_…:15
HIGH SEC120 [SEC120] Hardcoded HMAC key or JWT signing secret: JWT/HMAC signing secret hardcoded in s… app/models/webhook.rb:47
HIGH SEC120 [SEC120] Hardcoded HMAC key or JWT signing secret: JWT/HMAC signing secret hardcoded in s… app/controllers/api/v1/organizations_co…:37
HIGH DKR006 Dockerfile pipes a remote script into a shell Dockerfile.dev:15
HIGH DKR006 Dockerfile pipes a remote script into a shell Dockerfile:17
HIGH MINED115 [MINED115] Action `aws-actions/amazon-ecr-login` pinned to mutable ref `@v2`: `uses: aws-… .github/workflows/internal-build.yml:29
HIGH MINED115 [MINED115] Action `aws-actions/configure-aws-credentials` pinned to mutable ref `@v4`: `u… .github/workflows/internal-build.yml:21
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/internal-build.yml:18
HIGH MINED115 [MINED115] Action `ruby/setup-ruby` pinned to mutable ref `@v1`: `uses: ruby/setup-ruby@v… .github/workflows/linters.yml:19
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/linters.yml:15
HIGH MINED115 [MINED115] Action `peter-evans/repository-dispatch` pinned to mutable ref `@v3`: `uses: p… .github/workflows/release.yml:151
HIGH MINED115 [MINED115] Action `actions/download-artifact` pinned to mutable ref `@v4`: `uses: actions… .github/workflows/release.yml:97
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/release.yml:78
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/release.yml:31
HIGH MINED126 [MINED126] Workflow container/services image `getlago/postgres-partman:15.0-alpine` unpin… .github/workflows/migrations-test.yml:15
HIGH MINED115 [MINED115] Action `tj-actions/install-postgresql` pinned to mutable ref `@v3`: `uses: tj-… .github/workflows/migrations-test.yml:51
HIGH MINED115 [MINED115] Action `ruby/setup-ruby` pinned to mutable ref `@v1`: `uses: ruby/setup-ruby@v… .github/workflows/migrations-test.yml:46
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/migrations-test.yml:44
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v6`: `uses: actions/setup-… .github/workflows/front-compatibility.y…:49
HIGH MINED115 [MINED115] Action `pnpm/action-setup` pinned to mutable ref `@v6`: `uses: pnpm/action-set… .github/workflows/front-compatibility.y…:41
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/front-compatibility.y…:34
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/front-compatibility.y…:28
HIGH MINED126 [MINED126] Workflow container/services image `getlago/postgres-partman:15.0-alpine` unpin… .github/workflows/spec.yml:15
HIGH MINED115 [MINED115] Action `ruby/setup-ruby` pinned to mutable ref `@v1`: `uses: ruby/setup-ruby@v… .github/workflows/spec.yml:71
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/spec.yml:69
HIGH MINED118 [MINED118] Dockerfile FROM `ruby:4.0.2-slim` not pinned by digest: `FROM ruby:4.0.2-slim`… Dockerfile.dev:9
HIGH MINED118 [MINED118] Dockerfile FROM `ruby:4.0.2-slim` not pinned by digest: `FROM ruby:4.0.2-slim`… Dockerfile:32
HIGH MINED118 [MINED118] Dockerfile FROM `ruby:4.0.2-slim` not pinned by digest: `FROM ruby:4.0.2-slim`… Dockerfile:9
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:217
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:216
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:203
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:202
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:201
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:200
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:199
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:182
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:174
HIGH AUC003 [AUC003] Object-level route lacks visible authorization: A route with an object id-like p… config/routes.rb:97
HIGH CORE_NO_TESTS No test files found
MED SEC015 [SEC015] Insecure Randomness for Security: Weak PRNG used in security-sensitive context. … app/services/auth/okta/login_service.rb:42
MED SEC015 [SEC015] Insecure Randomness for Security: Weak PRNG used in security-sensitive context. … app/services/auth/google_service.rb:91
MED SEC015 [SEC015] Insecure Randomness for Security: Weak PRNG used in security-sensitive context. … app/models/payment_providers/flutterwav…:30
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED DKR009 Dockerfile separates apt update from install Dockerfile:37
MED DKR009 Dockerfile separates apt update from install Dockerfile:16
MED WEB013 robots.txt does not declare any User-agent rules public/robots.txt
MED DKR001 Docker final stage has no non-root USER Dockerfile.dev:10
MED DKR001 Docker final stage has no non-root USER Dockerfile:33
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED DKR014 Dockerfile copies broad context with incomplete .dockerignore Dockerfile:54
MED AUC002 [AUC002] Low visible authorization coverage in route inventory: Only 11.7% of discovered …
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:61
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:60
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:59
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:58
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:57
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:56
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:46
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:44
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:42
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … config/routes.rb:13
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… config/routes.rb:209
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… config/routes.rb:208
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… config/routes.rb:207
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… config/routes.rb:203
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… config/routes.rb:202
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… config/routes.rb:201
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… config/routes.rb:200
MED DKR004 Docker build secret exposed through ARG Dockerfile:42
LOW AIC003 Duplicated implementation block across source files app/graphql/mutations/subscriptions/upd…:22
LOW AIC003 Duplicated implementation block across source files app/graphql/mutations/plans/update.rb:17
LOW AIC003 Duplicated implementation block across source files app/graphql/mutations/data_exports/invo…:11
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/wallets/metadata…:3
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/subscriptions/fi…:8
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/subscriptions/en…:55
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/subscriptions/en…:20
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/subscriptions/en…:30
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/subscriptions/ch…:8
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/subscriptions/ch…:6
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/subscriptions/al…:31
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/plans/entitlemen…:66
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/analytics/overdu…:7
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/analytics/mrrs_c…:7
LOW AIC003 Duplicated implementation block across source files app/controllers/api/v1/analytics/invoic…:7
LOW AUC005 [AUC005] No authorization-focused tests detected: No test files with common authorization…
LOW WEB005 robots.txt does not advertise a sitemap public/robots.txt
LOW DKR010 Dockerfile leaves apt package indexes in the image layer Dockerfile.dev:15
LOW DKR011 Dockerfile installs recommended OS packages Dockerfile.dev:15
LOW DKR008 .dockerignore misses sensitive defaults .dockerignore
LOW DKR011 Dockerfile installs recommended OS packages Dockerfile:38
LOW DKR011 Dockerfile installs recommended OS packages Dockerfile:17
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… app/services/integrations/aggregator/co…:68
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… app/serializers/e_invoices/factur_x/bas…:7
INFO MINED091 [MINED091] Ruby Rescue Bare: rescue without exception class catches StandardError too bro… app/services/inbound_webhooks/process_s…:34
INFO MINED091 [MINED091] Ruby Rescue Bare: rescue without exception class catches StandardError too bro… app/graphql/types/charge_filters/values…:12
INFO MINED091 [MINED091] Ruby Rescue Bare: rescue without exception class catches StandardError too bro… app/controllers/application_controller.…:57
Reset to top 5 105 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `getlago/lago-api`

**Score: 73/100 (B-)**  ·  105 findings  ·  scanned 2026-06-05 12:59 UTC  ·  257,708 LOC

| Severity | Count |
|---|---|
| CRITICAL | 4 |
| HIGH | 44 |
| MEDIUM | 30 |
| LOW | 22 |

📊 [Full filterable report](https://repobility.com/scan/d5bbf7bb-a3db-4b3d-8722-27b2b726c0b2/)  ·  ![scorecard](https://repobility.com/scan/d5bbf7bb-a3db-4b3d-8722-27b2b726c0b2/report.png?v=1780664383-s2)

### Top findings

1. **CRITICAL** `SEC096` — Rails: SQL injection via where("#{...}") or find_by_sql
   `app/queries/customers_query.rb:76` · CWE-89
2. **CRITICAL** `SEC096` — Rails: SQL injection via where("#{...}") or find_by_sql
   `app/models/daily_usage.rb:15` · CWE-89
3. **CRITICAL** `SEC096` — Rails: SQL injection via where("#{...}") or find_by_sql
   `app/jobs/clock/terminate_ended_subscriptions_job.rb:9` · CWE-89
4. **CRITICAL** `MINED116` — Workflow uses `secrets.KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC` on a `pull_request` trigger
   `.github/workflows/spec.yml:59` · ✓ Repobility
5. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `app/models/pending_vies_check.rb:25`

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/d5bbf7bb-a3db-4b3d-8722-27b2b726c0b2/_
Megaproject â high spam risk
Could not determine 'getlago/lago-api' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.