Repository navigation
Conversation
maximthomas
left a comment
There was a problem hiding this comment.
praise: Reading tag_name directly and checking for an empty value keeps upstream lookup failures in the version step.
issue (blocking): Preserve Docker smoke tests for pushes in forks without published releases.
.github/workflows/build.yml:99
The base workflow reads the latest upstream release on every eligible push, which let an earlier features/** push in vharseko/OpenIG pass the lookup and Docker smoke test. HEAD reads releases from the repository running the workflow. GitHub currently returns HTTP 404 for the author's fork, so an eligible push with green Maven jobs now exits before Docker runs. Base lookup · Successful fork push
Keep the upstream release as the version source on fork pushes, using credentials that can read it or the public endpoint. GitHub scopes the workflow token to the repository that runs the workflow. An eligible push in a fork with no releases can reach Docker using the upstream version. Upstream runs still authenticate the API request and stop on API errors or an empty tag. Token scope · Latest release API
b80024a to
90ffe9a
Compare
|
@maximthomas I addressed the fork release lookup finding in 90ffe9ad. Both paths now read the latest release tag from I verified both paths on Ubuntu 26.04, including early failure on HTTP 403 and on missing or empty tags. The live fork lookup returned |
maximthomas
left a comment
There was a problem hiding this comment.
praise: Quoting GITHUB_ENV keeps both exports reliable when the runner's environment file path contains spaces.
Summary
Use the latest release tag from
OpenIdentityPlatform/OpenIGin the Docker build. Upstream runs readtag_namewithgh apiand the workflow token. Fork pushes use the same public release endpoint and keep their own image repository, so forks without published releases can still run the Docker smoke test.Fail the version lookup step if the API request fails or the tag is missing or empty. In #198, an empty version reached the Docker smoke test and produced
invalid reference format.Validation
6.2.0and set the image repository tovharseko/openig.mvn verifyon JDK 11,actionlint, andgit diff --check.