QuickDevGuide

Home › GitHub Actions

YAML, Triggers & Secrets — GitHub Actions

Every workflow is a YAML file. The most important keys are name, on, jobs, env, permissions, and concurrency. YAML indentation matters — many workflow bugs come from structure mistakes. Trigger Events Common triggers: push, pullrequest, workflowdispatch (manual), schedule, release, and workflowcall (reusable). Use path filters to only build what changed. Secrets & Permissions Use repository secrets for sensitive values. Reduce GITHUBTOKEN permissions so each workflow gets only what it needs. Secret Purpose GITHUBTOKEN Auto-provided — GHCR and API access KUBECONFIG Base64-encoded kubeconfig for kubectl STAGINGDBCONNECTION Staging PostgreSQL connection string PRODUCTIONDBCONNECTION Production PostgreSQL connection string

Key Takeaways