We are saved by grace through faith, not by works (Ephesians 2:8-9), yet James reminds us that living faith produces action (James 2:17).
Works do not earn salvation. They are the fruit that shows the root is alive, in love for neighbours, generosity and holiness.