Skip to content

fix(ci): handle missing Docker images in security scan workflow#191

Merged
kusold merged 2 commits intomainfrom
fix-docker-scan
Nov 14, 2025
Merged

fix(ci): handle missing Docker images in security scan workflow#191
kusold merged 2 commits intomainfrom
fix-docker-scan

Conversation

@kusold
Copy link
Copy Markdown
Owner

@kusold kusold commented Nov 13, 2025

Summary

The Docker Security Scan workflow was failing because it attempted to pull a Docker image that does not exist in GHCR for this repository. This fix modifies the workflow to:

  • Checkout the repository code to access the Dockerfile
  • Build the Docker image locally if the pull from registry fails
  • Proceed with the vulnerability scan using either the pulled or built image

This ensures the security scan can run even when no pre-built image is available in the registry.

Changes

  • Added checkout step in the scan job to access repository files
  • Modified the image pull step to conditionally build the image if pull fails
  • Updated dependencies (uv.lock) from installing dev/test packages

Testing

  • All existing tests pass
  • Linting passes with ruff
  • Workflow can be manually triggered to test the fix

@kusold kusold merged commit c97ab2e into main Nov 14, 2025
10 checks passed
@kusold kusold deleted the fix-docker-scan branch November 14, 2025 05:18
github-actions bot pushed a commit that referenced this pull request Apr 7, 2026
## [6.5.0](v6.4.1...v6.5.0) (2026-04-07)

### Features

* **ci:** switch to RenovateBot ([#194](#194)) ([4cd71a4](4cd71a4))

### Bug Fixes

* add issues write permission to Docker Security Scan workflow ([fe21b44](fe21b44))
* **ci:** Fix docker scan reference issues ([d737cd4](d737cd4))
* **ci:** Fix yaml indentation ([d3a47fd](d3a47fd))
* **ci:** handle missing Docker images in security scan workflow ([#191](#191)) ([c97ab2e](c97ab2e))
* replace pkg_resources with importlib.resources for Python 3.14 compat ([f9f6f22](f9f6f22))

### Tests

* add smoke test for app entrypoint imports ([c55316c](c55316c))

### Continuous Integration

* change release workflow to manual trigger ([069149e](069149e))

### Chores

* **ci:** add package rules for dependency update types ([8696a3e](8696a3e))
* **ci:** change label to addLabels for GitHub Actions ([9b6e57f](9b6e57f))
* **ci:** change matchDatasources to matchManagers in renovate.json ([df59e8c](df59e8c))
* **deps:** bump actions/checkout from 5 to 6 ([a9e3017](a9e3017))
* **deps:** bump actions/download-artifact from 4 to 6 ([17c2932](17c2932))
* **deps:** bump actions/download-artifact from 6 to 7 ([4e1bf45](4e1bf45))
* **deps:** bump actions/download-artifact from 7 to 8 ([9a78b38](9a78b38))
* **deps:** bump actions/github-script from 7 to 8 ([99adb09](99adb09))
* **deps:** bump actions/setup-python from 5 to 6 ([7d3977c](7d3977c))
* **deps:** bump actions/upload-artifact from 4 to 5 ([d6c0f14](d6c0f14))
* **deps:** bump actions/upload-artifact from 5 to 6 ([63c464f](63c464f))
* **deps:** bump actions/upload-artifact from 6 to 7 ([9bb3285](9bb3285))
* **deps:** bump cycjimmy/semantic-release-action from 4 to 5 ([a9871be](a9871be))
* **deps:** bump cycjimmy/semantic-release-action from 5.0.2 to 6.0.0 ([6dd5941](6dd5941))
* **deps:** bump docker/build-push-action from 6 to 7 ([82c78ce](82c78ce))
* **deps:** bump docker/login-action from 3 to 4 ([6a941e4](6a941e4))
* **deps:** bump docker/metadata-action from 5 to 6 ([b909f83](b909f83))
* **deps:** bump docker/setup-buildx-action from 3 to 4 ([8e39072](8e39072))
* **deps:** bump github/codeql-action from 3 to 4 ([16744b2](16744b2))
* **deps:** bump pygments from 2.19.2 to 2.20.0 ([3ef539a](3ef539a))
* **deps:** bump requests from 2.32.5 to 2.33.0 ([3e8bcd8](3e8bcd8))
* **deps:** bump tornado from 6.5.2 to 6.5.5 ([b22a963](b22a963))
* **deps:** bump urllib3 from 2.5.0 to 2.6.3 ([576ca3f](576ca3f))
* **deps:** pin dependencies ([6082802](6082802))
* **deps:** renovate config — semantic commits, labels, pin github-actions, automerge minor+ ([5faf6d6](5faf6d6))
* **deps:** update actions/checkout action to v5 ([48154fb](48154fb))
* **deps:** update actions/checkout action to v5.0.1 ([#207](#207)) ([d224efb](d224efb))
* **deps:** update actions/dependency-review-action action to v4.8.2 ([#196](#196)) ([9af1de5](9af1de5))
* **deps:** update actions/dependency-review-action action to v4.8.3 ([#222](#222)) ([ba60e44](ba60e44))
* **deps:** update actions/dependency-review-action action to v4.9.0 ([#227](#227)) ([994fcaf](994fcaf))
* **deps:** update actions/setup-node action to v6 ([e6af6dd](e6af6dd))
* **deps:** update amannn/action-semantic-pull-request action to v6 ([af4a16c](af4a16c))
* **deps:** update astral-sh/setup-uv action to v7 ([96797d7](96797d7))
* **deps:** update cycjimmy/semantic-release-action action to v5.0.2 ([#206](#206)) ([8c8347f](8c8347f))
* **deps:** update dependency node to v24 ([3dc2802](3dc2802))
* **deps:** update dependency node to v24.12.0 ([#214](#214)) ([d31a06e](d31a06e))
* **deps:** update dependency node to v24.13.0 ([#216](#216)) ([2b2e97c](2b2e97c))
* **deps:** update dependency node to v24.13.1 ([#220](#220)) ([1d79820](1d79820))
* **deps:** update dependency node to v24.14.0 ([#223](#223)) ([3c8deb2](3c8deb2))
* **deps:** update dependency node to v24.14.1 ([#238](#238)) ([ded2b6d](ded2b6d))
* **deps:** update dependency python to v3.14.1 ([#210](#210)) ([e32b494](e32b494))
* **deps:** update dependency python to v3.14.2 ([#211](#211)) ([4528ffa](4528ffa))
* **deps:** update dependency python to v3.14.3 ([#219](#219)) ([f1e8640](f1e8640))
* **deps:** update sigstore/cosign-installer action to v4.1.0 ([#235](#235)) ([e7ca0a9](e7ca0a9))
* **deps:** update sigstore/cosign-installer action to v4.1.1 ([#240](#240)) ([4ce25e5](4ce25e5))
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

🎉 This PR is included in version 6.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant