Interview Prep/CI/CD/GitHub Actions

You need a nightly job that opens an issue if dependency scanning finds critical vulnerabilities.

IntermediateScenarioGitHub Actions
Answer

Situation read → Scheduled security automation.

What I'd do →

  1. on: schedule with permissions: { contents: read, issues: write }.
  2. Run trivy fs --severity CRITICAL --exit-code 1 .; on failure use gh issue create --title ... --body-file report.txt.
  3. Enable Dependabot alerts and security updates as the baseline.

Why → Issues create a tracked, owned work item instead of a red nightly build nobody reads.

Interview tip → Route findings to owners; noise kills adoption.

All CI/CD questions

More on GitHub Actions