From 50d2535fb8a89ab11d11abe912851a80cb288605 Mon Sep 17 00:00:00 2001 From: Roman Zimmermann Date: Thu, 7 Nov 2024 18:37:51 +0100 Subject: [PATCH 1/2] feat: Declare CSP header requirements --- payone_payment.module | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/payone_payment.module b/payone_payment.module index 142de65..d188bba 100644 --- a/payone_payment.module +++ b/payone_payment.module @@ -100,3 +100,12 @@ function payone_payment_payment_delete(\Payment $payment) { }, $payment->statuses); Transaction::deleteIds($psiids); } + +/** + * Implements hook_d7csp_hosts(). + */ +function payone_payment_d7csp_hosts() { + $hosts['connect-src'][] = 'https://secure.pay1.de'; + $hosts['script-src'][] = 'https://secure.pay1.de'; + return $hosts; +} From 6ed26132900527eea8a61abee89fdfbbd2efce96 Mon Sep 17 00:00:00 2001 From: Roman Zimmermann Date: Mon, 25 Nov 2024 12:39:54 +0100 Subject: [PATCH 2/2] CI: bump Ubuntu version --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 381aa81..2ea408e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,10 +6,10 @@ on: jobs: phpunit: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 strategy: matrix: - php-versions: ["7.3", "7.4"] + php-versions: ["7.4"] name: phpunit on PHP ${{ matrix.php-versions }} env: DB_DATABASE: drupal