Implement strict security controls in continuous integration and deployment workflows: 1. Pin external GitHub Actions to immutable commit hashes rather than mutable tags:
Implement strict security controls in continuous integration and deployment workflows:
# Separate high-privilege workflows (e.g., update-nix-hash.yml) from regular CI workflows
permissions:
contents: write # Clearly visible elevated permission
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
)Implementing these practices prevents supply chain attacks and reduces the risk of compromised workflows affecting your repository.
Enter the URL of a public GitHub repository