Skip to content

ci: bump actions versions and don't persist credentials - #585

Merged
Kanti merged 4 commits into
webdevops:masterfrom
luc122c:ci/workflow-maintenance
Oct 21, 2026
Merged

Kanti merged 4 commits into
webdevops:masterfrom
luc122c:ci/workflow-maintenance

Conversation

@luc122c

@luc122c luc122c commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

This PR bumps all actions to their latest major release. I've checked each one to make sure the parameters and behaviour are compatible. The only one that was a 'breaking' change was actions/download-artifact@v8 which errors if the hash doesn't match. I've set it back to the old behaviour; however, I'd say that the default is probably better.

I've also added persist-credentials: false to the checkout step since none of the steps need to commit anything back to the repo.

Comment thread ci/src/GithubJobBuilder.php Outdated
luc122c and others added 2 commits October 21, 2026 11:15
Co-authored-by: Matthias Vogel <git@kanti.de>
@luc122c
luc122c requested a review from Kanti October 21, 2026 10:19
@Kanti

Kanti commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR and for quickly addressing the feedback!

I'll wait until the upcoming PHP security release is out, then run the pipelines. If everything is green, I'll merge the PR.

Thanks again for your contribution!

@luc122c

luc122c commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

Yep, busy day today 😆 It's the security release that brought me here to the repo. Thanks for jumping on it so quickly! 👍

Brings in the CI changes from upstream webdevops/Dockerfile:

- Optimize BuildKit cache scopes: per image/arch `type=gha,scope=...` instead
  of one shared scope, plus `no-cache` on schedule and rerun attempts so a
  fresh full image chain is built
- `overwrite: true` on upload-artifact so a rerun replaces the previous
  attempt's parent image
- Drop PHP 8.1 image builds and support
- Replace PECL installs with PIE and upstream source builds
- Enforce minimum PHP security patch versions
- Disable session upload progress by default

Conflict in `ci/src/GithubJobBuilder.php` (the "Export image (OCI layout)"
step) resolved by keeping the v7 build-push-action bump alongside upstream's
new comment. `.github/workflows/build.yaml` was regenerated from the merged
generator rather than hand-merged.

Action versions bumped on this branch, all still in place after the merge:
- actions/checkout v6 -> v7 (with `persist-credentials: false`)
- actions/upload-artifact v4 -> v7
- actions/download-artifact v4.1.9 -> v8
- docker/build-push-action v6 -> v7
- docker/setup-buildx-action v3 -> v4
- docker/login-action v3 -> v4
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@luc122c

luc122c commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

Merge conflicts fixed

@Kanti
Kanti merged commit ac88d27 into webdevops:master Oct 21, 2026
181 of 183 checks passed
@Kanti

Kanti commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Thank you @luc122c

@luc122c
luc122c deleted the ci/workflow-maintenance branch October 22, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants