Every PR runs a 10-minute CodeQL scan for a docs change. Fix it.
BeginnerScenarioSpeed, Caching & Cost
Answer
Situation read → Missing path filters on a non-required analysis workflow.
What I'd do →
- Exclude docs from the trigger:
on: pull_request: paths-ignore: ["docs/**", "**/*.md"] - If it is a required check, instead do job-level filtering so a check is still reported.
Why → Workflow-level filters are fine for non-required workflows and save the most.
Interview tip → Always ask "is it required?" before adding workflow-level path filters.
More on Speed, Caching & Cost
`npm ci` takes 4 minutes on every run. Fix it.BeginnerDocker builds take 12 minutes even when only one line of code changed. Speed them up.IntermediateThe repo hits the 10 GB cache limit daily and hit rates are poor. What do you change?IntermediatemacOS jobs are 60% of your bill. What are your options?IntermediateA job sometimes hangs and burns 6 hours. How do you stop it happening again?BeginnerYour PR matrix is 3 OS times 4 versions (12 jobs). How do you cut cost without losing coverage?Advanced