Commit Graph
315 Commits
Author SHA1 Message Date
Adam DaleyandCopilot Autofix powered by AI b2be307766 Enhance session management and image output configurations (#3558)
* Add session regeneration with grace period

* Enable push and canonical name for image outputs

* Remove redundant Docker Hub login scope

* Clear runtime cache around patching

* Add `default_currency` global to Twig

* Make default currency nullable

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-16 08:19:12 +01:00
Adam Daley 7d85643c5e Add Docker login scope for push access (#3557) 2026-05-16 07:06:51 +01:00
Adam Daley 4118955eb7 Move GHCR login after Docker Hub in workflow (#3555) 2026-05-16 06:31:34 +01:00
renovate[bot] 611a9c808c Update github/codeql-action digest to 9e0d7b8 2026-05-16 01:33:39 +00:00
Adam Daley d9faa0ac15 Prefix meta image names with docker.io (#3553) 2026-05-15 02:00:05 +01:00
renovate[bot] 5144780269 Update docker/metadata-action action to v6 (#3551)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-15 01:19:20 +01:00
Adam Daley a25f542ba2 Use matrix.suffix for artifact names and disable provenance for Docker builds (#3548)
* Use matrix.suffix for artifact names

* Disable provenance for Docker build outputs
2026-05-15 00:08:14 +01:00
Adam Daley fcdce39853 Use matrix.suffix for artifact names (#3547) 2026-05-14 23:05:43 +01:00
Adam Daley 5f5a6e5a6a Refactor CI with build-push-action and Docker caching (#3545)
* Switch CI to build-push-action and add GHCR caching

* Set YAML `indent_size` to 2 in .editorconfig

* CI: Reuse Docker steps

* Update docker/login-action to v4

* Upload preview Docker image artifact in CI

* Add reusable docker-build workflow
2026-05-14 22:29:17 +01:00
renovate[bot] 6948bd0f6a Update shivammathur/setup-php digest to 7c071df 2026-05-14 16:43:01 +00:00
b49ccb9df8 Sanitize invoice handling, enhance security, and improve API responses (#3524)
* Sanitize invoice hash and secure asset paths

* Guard against missing client session

* Serialize invoice items into indexed inputs

* Validate URL field input type before checking

* Block legacy paid support hooks on ticket create

* Harden CSRF token validation in API client

* Add 'Paidsupport' to cspell word list

* Use Stripe metadata to link client and invoice

* Remove legacy Paidsupport hooks handling

* Add paidsupport to cspell word list

* Use config debug flag; always warn if install exists

* Revert "Use config debug flag; always warn if install exists"

This reverts commit fda6fcc0b05758d897a837d125ce1c0a35be0226.

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix Stripe getClientFromTransaction and simplify UpdatePatcher cache invalidation

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/49a72bff-61f2-4a3e-9107-08aec7b255d2

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Restrict Dompdf logo remote URLs to http/https schemes only

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/58c16027-cc36-4c11-a039-0bfcaf5a45f5

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Enable Buildx cache and add release archive

* Restrict `claimForProcessing` SQL and update tests

* Add HTML sanitizer and sandboxed Twig rendering

* Update test expected HTML in ServiceTest

* Add `RequestFactory` and trusted proxy support

* Use HttpFoundation Responses & Request everywhere

* Return HTTP Response objects for exports/downloads

* Refactor request routing, auth errors and CSV export

* Remove RequestFactory wrapper and minor cleanups

* Specify Response union return types

* Parenthesize response constructions before send

* Clean up PHPStan ignore rules

* Relax HTML test to accept optional tbody/br

* fix(theme): call getUploadedAssets without arguments

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/ce04bff6-ccde-4a10-8a68-f6278b1b550e

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-05-12 00:10:49 +01:00
Copilotandadmdly c7566e091e Stabilize Docker publish workflows by disabling fragile GHA cache imports (#3515)
Disable Docker GHA cache in preview/release workflows

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/07ce9c6d-cb2b-4bb5-9517-3aabe5276051

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-05-11 01:00:33 +01:00
renovate[bot] 9985584f1c Update docker/setup-buildx-action action to v4 (#3514)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-11 00:12:29 +01:00
b82df887fe Enhance CI/CD with Docker optimizations and error handling (#3509)
* Bump Dockerfile syntax to 1.18

* Add getStatusCode to Response and update test

* Expect error code 740 for invalid theme action

* Use Docker-based CI/test image and live test script

* Add PHP 8.5 to CI matrix

* Add Buildx caching and optimize Docker build

* Add CI timeouts, quoting fixes, and release tree build

* Add concurrency, caching, and cleanup to CI

* Grant permissions for preview-build job

* Map error code 740 to HTTP 404 and update test

* Update cache-scope names in GitHub workflows

* Remove redundant status guard in theme admin test

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/b20f484f-0aaa-4afc-ae43-adb264bb05aa

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Grant cache export permissions to CI build job

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/a088c94f-a176-40fb-9e0b-ee3cac2aeb5b

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Disable cache for release artifact build

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-10 22:43:16 +01:00
Adam Daley f7f7fbc3df Enhance security, validation, and configuration for various services (#3507)
* Use `\A` and `\z` anchors in Finder regex

* Run config patches before core patches

* Ensure cron log exists and owned by www-data

* Change numeric inputs to text for plan limits

* Invoke global listeners for fired event

* Sanitize PDF filenames in `createPdfResponse`

* Use `array_key_exists` for blacklist check

* Prefer custom package value for DirectAdmin

* Validate password argument type in isPasswordStrong

* Skip non-installed non-core modules in Hook Service

* Instantiate `DoctrinePaginator` after limits

* Validate guest message is a string

* Adjust mocks in Hook ServiceTest

* Validate currency conversion rate input

* Stop accepting CSRF header token

* Add `.dockerignore` and modernize CI/Dockerfile

* Mock `CurrencyRepository` in `ServiceTest`

* Add antispam hooks for client/admin login

* Move password reset captcha before rate limiting

* Add sandbox attribute to email preview iframe

* Skip reprocessing and include payment_intent check

* Check password reset captcha after rate limit

* Enhance testCreateAndProcess with DB and TX mocks
2026-05-10 16:46:22 +01:00
7a2c20e264 Fix merge-hold status updates on PR label changes (#3502)
* Fix CI merge-hold checks on PR label changes

* Avoid duplicate CI on PR label events

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/cfc116ce-5ae8-439f-acc0-fe5ecd868c89

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-05-10 14:19:22 +01:00
renovate[bot] 99424c82c3 Update release-drafter/release-drafter digest to c2e2804 2026-05-08 16:31:07 +00:00
renovate[bot] 0955f2311e Update github/codeql-action digest to 68bde55 2026-05-08 07:28:32 +00:00
Adam DaleyandCopilot Autofix powered by AI 2206119011 Fix for code scanning alert no. 423: Workflow does not contain permissions (#3492)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-05-06 23:25:12 +01:00
Adam Daley 1cd99f4fe4 Refactor CI workflow and integrate multi-language support (#3490)
* Make CodeQL workflow multi-language matrix

* Consolidate merge-hold check into CI

* Merge labeler workflow into CI and adjust triggers

* Integrate Release Drafter into CI workflow

* Embed live-tests job into CI workflow

* Refactor CI workflow: consolidate permissions

* Enable release-drafter autolabeler

* Rename CI job name to 'Live Tests'

* Add composite action to prepare application assets

* Enable workflow concurrency and fail-fast

* Run live-tests after spellcheck

* Add live-tests dependency to preview-build

* Make concurrency group include workflow/event/PR
2026-05-06 23:14:05 +01:00
renovate[bot] eb5ae0554c Update actions/labeler digest to f27b608 2026-05-06 08:09:59 +00:00
Yağızhan Burak Yakar e05ce7a7e2 Rate limit system improvements (#3461) 2026-05-04 16:53:28 +01:00
cdf1aa8329 Switch live-tests Apache setup to PHP-FPM (#3477)
* fix(ci): switch live-tests to PHP-FPM to avoid Ondrej PPA failures

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/f6ad9206-9be8-4447-ac64-86f1db428c60

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* fix(ci): restart php8.4-fpm after pool config update to pick up APP_ENV=test

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/15bfabb2-a837-4d51-9e2b-9c016fe2ad7d

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-03 23:34:34 +01:00
renovate[bot] 032356d08c Update github/codeql-action digest to e46ed2c (#3471)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-02 03:38:08 +01:00
renovate[bot] b17092cba2 Update release-drafter/release-drafter digest to 563bf13 2026-04-30 11:31:37 +00:00
renovate[bot] 4333e4fcc7 Update actions/setup-node digest to 48b55a0 2026-04-21 00:37:31 +00:00
Adam Daley 601fb9536d Update CI workflow actions and remove cache step (#3422) 2026-04-17 08:08:51 +01:00
renovate[bot] e2a5d010c7 Update github/codeql-action digest to 95e58e9 2026-04-15 17:56:09 +00:00
renovate[bot] 5cffb4948a Update actions/cache digest to 27d5ce7 2026-04-14 00:58:08 +00:00
renovate[bot] c0c4eed5c1 Update actions/upload-artifact digest to 043fb46 2026-04-11 00:58:34 +00:00
renovate[bot] 024618ce79 Update peter-evans/create-pull-request digest to 5f6978f 2026-04-11 00:54:12 +00:00
renovate[bot] fd939ab718 Update release-drafter/release-drafter digest to 5de9358 2026-04-10 00:57:49 +00:00
renovate[bot] e573a872c1 chore(deps): update fossbilling/.workflows digest to 76b4af7 2026-04-08 09:46:32 +00:00
Copilotandadmdly c5f289082f Fix Docker CI by clearing scope/manifest GHA cache entries, not just blob entries (#3404)
Fix clear-docker-cache to also delete scope/manifest GHA cache entries

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/bc1342e9-112e-492f-bf58-7e9e92a67e5e

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-04-08 10:26:30 +01:00
Copilotandadmdly e9602e15a1 Clear stale BuildKit GHA cache entries before Docker preview CI build (#3402)
* fix: clear stale Docker BuildKit GHA caches before image build

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/92839a22-82fe-4dc0-8d8f-f7da211aa180

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* fix: paginate cache listing to handle >100 entries

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/92839a22-82fe-4dc0-8d8f-f7da211aa180

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-04-08 10:07:27 +01:00
Adam Daley 3c5b679d15 Update action versions in CI workflow (#3401) 2026-04-08 08:49:28 +01:00
renovate[bot] 9c29e1fa8b chore(deps): update streetsidesoftware/cspell-action digest to de2a73e 2026-04-07 00:52:39 +00:00
renovate[bot] 0a5271103a chore(deps): update github/codeql-action digest to c10b806 2026-03-28 01:48:07 +00:00
renovate[bot] e12906cd8f chore(deps): pin dependencies (#3376)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-27 09:05:35 +00:00
renovate[bot] c725910674 chore(deps): update fossbilling/.workflows digest to 14f9ee1 2026-03-24 00:34:46 +00:00
renovate[bot] 4f88416349 chore(deps): update github/codeql-action digest to 3869755 2026-03-21 00:51:54 +00:00
renovate[bot] 0adb6c4d45 chore(deps): update release-drafter/release-drafter digest to 139054a 2026-03-19 05:04:48 +00:00
renovate[bot] 6803255575 chore(deps): update actions/cache digest to 6682284 2026-03-19 00:52:04 +00:00
renovate[bot] 4a73d20b6a chore(deps): update release-drafter/release-drafter digest to 44a942e 2026-03-18 04:45:16 +00:00
Adam Daley bbdf1f8951 Bump actions/checkout to v6 (#3342) 2026-03-17 15:39:47 +00:00
renovate[bot] f74c08f569 chore(deps): update github/codeql-action digest to b1bff81 2026-03-16 23:48:39 +00:00
renovate[bot] 6a20628411 chore(deps): update fossbilling/.workflows digest to de41917 2026-03-16 23:23:59 +00:00
renovate[bot] a9251a88b8 chore(deps): update shivammathur/setup-php digest to accd612 2026-03-16 00:53:37 +00:00
renovate[bot] c7bb325cee chore(deps): update release-drafter/release-drafter action to v7 (#3326) 2026-03-15 14:06:43 +00:00
renovate[bot] 8be6411154 chore(deps): update actions/download-artifact digest to 3e5f45b 2026-03-12 00:36:45 +00:00