Skip to content

docs: add Dockerfile auto-discovery workflow pattern#25

Merged
dc-larsen merged 1 commit intomainfrom
docs/dockerfile-autodiscovery
Feb 4, 2026
Merged

docs: add Dockerfile auto-discovery workflow pattern#25
dc-larsen merged 1 commit intomainfrom
docs/dockerfile-autodiscovery

Conversation

@dc-larsen
Copy link
Contributor

Summary

Adds documentation for automatically discovering Dockerfiles in repositories with multiple Dockerfile locations, eliminating the need to manually list each path.

  • Two-job workflow pattern: discovery job finds files, scan job receives paths
  • Matches common patterns: Dockerfile, Dockerfile.*, *.dockerfile
  • Excludes test fixtures and build artifacts (node_modules, vendor, dist, etc.)
  • Includes customization examples

Context

This documents the GitHub Actions approach discussed in #19, which was preferred over building discovery into Socket Basics itself for portability and per-repo customization.

Test plan

  • Review workflow YAML for correctness
  • Verify find command excludes appropriate directories
  • Check that documentation fits existing doc style

Add documentation for automatically discovering Dockerfiles in repos
with multiple Dockerfile locations. Uses a two-job workflow pattern
where the first job finds Dockerfiles matching common patterns
(Dockerfile, Dockerfile.*, *.dockerfile) while excluding test fixtures
and build artifacts, then passes discovered paths to the scan job.

This approach was chosen over building discovery into Socket Basics
itself for better portability and per-repo customization.
@dc-larsen dc-larsen requested a review from a team as a code owner February 4, 2026 17:15
@dc-larsen dc-larsen merged commit 916662d into main Feb 4, 2026
4 checks passed
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.

3 participants