Skip to content

chore(COD-7117): add IaC prescan optimisation#269

Merged
baltoiteodor merged 6 commits into
mainfrom
teodor/COD-7117-test
Jun 12, 2026
Merged

chore(COD-7117): add IaC prescan optimisation#269
baltoiteodor merged 6 commits into
mainfrom
teodor/COD-7117-test

Conversation

@baltoiteodor

@baltoiteodor baltoiteodor commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Linked JIRA issue(s)

https://lacework.atlassian.net/browse/COD-7117

Description

Delegate IaC scan skip decision to the Docker image instead.

  • Remove shouldRunIaCScanner — the Docker image's lacework iac pre-scan now owns whether to run IaC
  • Set enableIacRunning = true unconditionally so IaC is always requested; the container skips internally when no relevant files are modified
  • Add tryCallCommand to tolerate missing IaC result files (no error annotation when the container legitimately skips IaC)

Run with terraform file: https://github.com/lacework-dev/WebGoat/actions/runs/27279156904/job/80582118938
Run with no IaC files: https://github.com/lacework-dev/WebGoat/actions/runs/27283130346/job/80582859977?pr=172
Run with bait IaC files (random.json): https://github.com/lacework-dev/WebGoat/actions/runs/27284639958/job/80588343384?pr=172 -- triggers iac prescan but does not do full scan

@baltoiteodor baltoiteodor marked this pull request as ready for review June 10, 2026 15:35
@baltoiteodor baltoiteodor changed the title chore(COD-7117): do not merge yet chore(COD-7117): add IaC prescan optimisation Jun 11, 2026
@baltoiteodor baltoiteodor merged commit d09019c into main Jun 12, 2026
4 checks passed
@baltoiteodor baltoiteodor deleted the teodor/COD-7117-test branch June 12, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants