Skip to main content

GA-L011: Credentials leak

Error Security

Why This Matters

Container or service credentials (username/password) are hardcoded in the workflow file. This exposes secrets in version control and CI logs. Use encrypted secrets instead.

How to Fix

Move credentials to GitHub secrets.

Before (incorrect)

services:
  db:
    image: postgres
    credentials:
      username: admin
      password: pass123

After (correct)

services:
  db:
    image: postgres
    credentials:
      username: ${{ secrets.DB_USER }}
      password: ${{ secrets.DB_PASS }}

Rule Details

Rule Code
GA-L011
Severity
Error
Category
Security

Related Rules