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 →
on: schedulewithpermissions: { contents: read, issues: write }.- Run
trivy fs --severity CRITICAL --exit-code 1 .; on failure usegh issue create --title ... --body-file report.txt. - 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.
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate