The increasing digitalisation of critical energy infrastructure has elevated cybersecurity from a traditional information technology concern to a broader software engineering and risk governance challenge. While previous studies have examined cyber threats, regulatory requirements, and operational resilience independently, limited attention has been given to integrating secure software engineering practices with cyber risk governance in the energy sector. This study addresses that gap through a PRISMA 2020-based systematic literature review. A total of 1,092 records were identified from Scopus, Web of Science, Google Scholar, and authoritative institutional sources, of which 70 studies met the final inclusion criteria. The review synthesises evidence on IT/OT convergence, ransomware, supply-chain vulnerabilities, artificial intelligence, and emerging cybersecurity regulations affecting critical energy systems. The findings indicate that effective cyber resilience requires security to be embedded throughout the software development lifecycle rather than treated solely as a compliance activity. Based on the reviewed literature, a four-pillar framework encompassing regulatory compliance, operational technology security, third-party risk management, and AI governance is proposed and aligned with SSDLC and DevSecOps principles. The framework promotes secure-by-design architectures, continuous security validation, and lifecycle-oriented risk management for critical infrastructure applications. This study contributes an integrated software engineering perspective that connects cyber risk governance with secure software development practices. The proposed framework offers practical guidance for software engineers, cybersecurity practitioners, and policymakers seeking to strengthen resilience, improve compliance readiness, and support the secure evolution of critical energy infrastructure.