ci: trigger publish-test-deps-image on PR Dockerfile changes#403
Merged
dgarske merged 2 commits intoMay 27, 2026
Merged
Conversation
Adds pull_request_target trigger so a Dockerfile change in a PR republishes :bookworm without waiting for merge to master. Uses the PR head SHA in checkout so the build sees the PR's Dockerfile. Concurrency now scoped per-PR/branch to keep parallel pushes from racing to overwrite the tag.
There was a problem hiding this comment.
Pull request overview
This PR updates the publish-test-deps-image GitHub Actions workflow so that changes to docker/wolfprovider-test-deps/** in pull requests can trigger a rebuild/publish of the wolfprovider-test-deps image, enabling PR CI jobs to use updated dependency images.
Changes:
- Adds a
pull_request_targettrigger for Dockerfile/workflow path changes. - Adjusts checkout to build from the PR head SHA under
pull_request_target. - Updates concurrency grouping to reduce push races.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…e SHA tag Addresses Copilot review on wolfSSL#403: - Author gate: pull_request_target only runs for OWNER/MEMBER. The prior 'github.repository == wolfSSL/wolfProvider' check did not exclude fork PRs since github.repository on pull_request_target is the BASE repo. Without the author gate a fork PR could smuggle a Dockerfile RUN that exfiltrates the canonical GITHUB_TOKEN (it has packages:write here). - Concurrency: drop the per-PR group and use a single global group. Per-PR serialization still let two PRs race to overwrite the shared :bookworm tag. - SHA tag: on pull_request_target github.sha is the BASE commit, not what we actually built. Resolve from the checked-out HEAD so the bookworm-<sha> tag matches the image contents.
dgarske
approved these changes
May 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.
No description provided.