Repository navigation
Conversation
cthorn42
force-pushed
the
PE-47151/main/mend-scan
branch
from
October 16, 2026 23:44
7d5345c to
e3aa129
Compare
The scan only ran on push to main, so it goes stale whenever the repo is quiet. Run it daily and on manual dispatch instead. Scan each branch listed in the matrix into its own <repo>-<branch> project, so a release branch can be added later with one entry. While here, harden the job, since it holds the Mend credentials: - read-only GITHUB_TOKEN permissions - actions pinned to commit SHAs - the unified agent pinned to a release and checked against its published sha256, instead of the floating S3 download - install only Leiningen, which is all `lein pom` needs Generate the pom without the :dev profile. `lein pom` writes :dev dependencies as test scope, and Mend drops runtime dependencies that Maven resolves underneath them, which can leave shipped libraries out of the report. Also fail the job if Mend reports that dependency resolution failed, rather than uploading an empty inventory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cthorn42
force-pushed
the
PE-47151/main/mend-scan
branch
from
October 16, 2026 23:48
e3aa129 to
3748c12
Compare
Mend uploads even when its own Maven dependency resolution fails, and with updateType OVERRIDE that replaces the project's inventory with an empty one. The grep for "Failed getting dependencies" ran after the upload, so it turned the job red but could not stop the overwrite. Run `lein with-profile -dev deps` first, so a dependency that can't be resolved fails the job before Mend runs. Keep the grep as a backstop for failures only Mend's Maven run hits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AriaXLi
approved these changes
Oct 27, 2026
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
The Mend scan only ran on push to
main, so it stops scanning whenever the repo is quiet. This runs it daily at 03:00 and on manual dispatch instead, with no push trigger.branch:matrix scans into its own<repo>-<branch>Mend project.mainis the only branch today; a release branch can be added later with one entry.GITHUB_TOKENpermissionslein pomneeds, instead of every Clojure tool atlatest.lein with-profile -dev pom. Plainlein pomwrites:devdependencies as test scope, and Mend drops runtime dependencies that Maven resolves underneath them. That didn't happen in this repo, but in a sibling repo it left about 40 shipped libraries out of the report.Failed getting dependencies, instead of uploading a near-empty inventory.Testing
Ran from this branch: https://github.com/puppetlabs/trapperkeeper-filesystem-watcher/actions/runs/38983036664
trapperkeeper-filesystem-watcher-main, the same count as before thewith-profile -devchange, with no "omitted dependency" warnings.Not exercised: the scheduled trigger itself, which only fires from the default branch.
🤖 Generated with Claude Code