nrkno / nrkno/github-workflow-terraform-config

only scan files changed in PR

Open
#86 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
HCL
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

It is a bit annoying to be bothered with trivy-scans in PRs unrelated to code being scanned. example: https://github.com/nrkno/iac-terraform-gcloud-kubernetes/actions/runs/4111970971/jobs/7096321976

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the reusable GitHub workflow in this repository and inspect the linked example workflow run to understand when the Trivy scan currently runs. Trace how the workflow identifies files in a pull request; done means scans run only when files relevant to the scanned code have changed.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, terraform
Domain
ci-cd, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.