Repository navigation
Label dependency update PRs and drop pull_request_target - #1454
Merged
Merged
Conversation
dmikusa
requested review from
nicolasbender and
pacostas
and removed request for
a team
November 5, 2026 13:13
dmikusa
commented
Nov 5, 2026
anthonydahanne
previously approved these changes
Nov 5, 2026
dmikusa
force-pushed
the
fix/dependency-semver-label-and-pr-trigger
branch
2 times, most recently
from
November 7, 2026 04:26
ee1444f to
66de2ec
Compare
pacostas
reviewed
Nov 9, 2026
pacostas
approved these changes
Nov 11, 2026
Compute the highest semver bump between buildpack.toml before and after the update and expose it as semver_bump. Use it to add semver:major/minor/patch when opening dependency update pull requests.
Run the label workflow on pull requests with explicit GITHUB_TOKEN write permissions. Same-repo and Dependabot pull requests can still be auto-labeled, while fork pull requests are skipped because they receive a read-only token.
Add a setup tools action that installs jam and libpak-tools from scripts/.util/tools.json or input versions. Replace the inline jam install and Python helper in update-from-metadata with the setup action and libpak-tools ci calculate-semver-bump.
pacostas
force-pushed
the
fix/dependency-semver-label-and-pr-trigger
branch
from
November 11, 2026 15:52
470d907 to
9afe6ad
Compare
4 of 5 tasks
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.
Dependency update PRs were opened without a semver label, so they immediately failed the required semver check. The PR label workflow also used
pull_request_target.What changed
actions/tools/setup, a bash composite action that installsjamandlibpak-toolsfromscripts/.util/tools.json. Individual versions can be overridden withjam-version/libpak-tools-version, so it also works without a config file.update-from-metadataaction now uses that setup action and callslibpak-tools ci calculate-semver-bump, which has unit tests in libpak-tools. The implementation dependency update workflow uses the result to addsemver:major,semver:minor, orsemver:patchwhen opening the PR.label-prworkflows now usepull_requestinstead ofpull_request_target, with explicitGITHUB_TOKENwrite permissions. Same-repo and Dependabot PRs are still auto-labeled; fork PRs are skipped because they receive a read-only token.Verification
go test ./...in libpak-tools.jamandlibpak-toolsreleases locally.yamllint,shellcheck, andscripts/sanity.sh.Depends on paketo-buildpacks/libpak-tools#129 and a libpak-tools release containing the new
ci calculate-semver-bumpcommand. The currenttools.jsonpin isv0.6.0, so the pin needs bumping after that release.Note
This PR was written by opencode and reviewed by a human.