Skip to content

Commit a025ce0

Browse files
author
saville
committed
Make sure to explicitly set cache-dir just in case
1 parent 0773bef commit a025ce0

File tree

1 file changed

+4
-1
lines changed
  • buildrunner/steprunner/tasks

1 file changed

+4
-1
lines changed

buildrunner/steprunner/tasks/push.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ def _security_scan_trivy(
254254
with open(
255255
os.path.join(local_run_dir, config_file_name), "w", encoding="utf8"
256256
) as fobj:
257-
yaml.safe_dump(security_scan_config.config, fobj)
257+
yaml.safe_dump(
258+
{"cache-dir": container_cache_dir, **security_scan_config.config},
259+
fobj,
260+
)
258261

259262
image_scanner = None
260263
try:

0 commit comments

Comments
 (0)