diff --git a/.github/workflows/moodle-plugin-ci.yml b/.github/workflows/moodle-plugin-ci.yml index 45cbad7..6fecc03 100644 --- a/.github/workflows/moodle-plugin-ci.yml +++ b/.github/workflows/moodle-plugin-ci.yml @@ -153,8 +153,9 @@ jobs: - name: Behat features if: ${{ !cancelled() }} - # Envoke GitHub secret (works OK only on this level) + # Envoke GitHub secret credentials (works OK only on this level) env: + CLIENTID: ${{ secrets.CLIENTID }} PAYUNITY_SECRET: ${{ secrets.PAYUNITY_SECRET }} run: moodle-plugin-ci behat --profile chrome diff --git a/tests/generator/lib.php b/tests/generator/lib.php index b809b73..ef48d73 100644 --- a/tests/generator/lib.php +++ b/tests/generator/lib.php @@ -75,10 +75,10 @@ public function create_configuration($record = null) { $config = new stdClass; $config->brandname = 'PayUnity'; - $config->clientid = '8ac7a4c8742e842701742ffa2dea070d'; - // Load the secret from Github. - $config->secret = getenv('PAYUNITY_SECRET'); $config->environment = 'sandbox'; + // Load the credentials from Github. + $config->clientid = getenv('CLIENTID'); + $config->secret = getenv('PAYUNITY_SECRET'); $record->config = json_encode($config);