refactor: restructure workflows to target layout from github-actions-help - #37
Merged
Conversation
…help Agent-Logs-Url: https://github.com/maansaake/locksmith/sessions/30d920fa-20eb-4ce3-8989-6f99dc6e0b37 Co-authored-by: maansaake <15028979+maansaake@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
maansaake
May 2, 2026 13:44
View session
added 3 commits
May 2, 2026 17:17
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
added 4 commits
May 2, 2026 17:43
maansaake
marked this pull request as ready for review
May 2, 2026 16:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the existing monolithic
build.ymlandimage.ymlwith the structured workflow layout modelled aftermaansaake/github-actions-help, adapted for this pure-Go repository.Changes
Removed
.github/workflows/build.yml— monolithic lint + test + build.github/workflows/image.yml— standalone image build/pushAdded
Reusable workflows (called via
workflow_call):.github/workflows/go.yaml— builds and tests against bothstableandoldstableGo releases (matrix), with custom module/build caching, coverage report artifact upload, and builds bothlocksmithandlocksmithctlbinaries.github/workflows/image.yaml— builds the Docker image; pushes when called withpush: trueor when triggered directly byrelease: publishedTrigger workflows:
.github/workflows/main.yaml— runs on push tomain; callsgo.yamlthenimage.yaml(build-only, no push).github/workflows/pull-request.yaml— runs on PRs targetingmain; same pipeline asmain.yaml.github/workflows/lint.yaml— runs golangci-lint v2.12.0 on push tomainand PRs, uploads results as SARIF to code scanningAutomation:
.github/workflows/auto-update-pr-branches.yaml— rebases all open PRs ontomainafter every merge.github/workflows/dependabot-auto-approve.yaml— auto-approves and enables auto-merge for Dependabot minor/patch PRs; comments on major updates.github/dependabot.yml— weekly grouped Dependabot updates for Go modules, Docker, and GitHub ActionsNotes
release: publishedtriggersimage.yamldirectly withpush: truesemantics). Themain.yamlbuild is verification-only (push: false).auto-update-pr-branchesanddependabot-auto-approverequire theJEEVES_APP_IDandJEEVES_APP_PRIVATE_KEYsecrets for GitHub App authentication (same as the reference repo).py.yaml) was added since locksmith is a pure-Go project.COMMITbuild arg is preserved inimage.yamlas the locksmithDockerfileuses it alongsideVERSION.