Skip to content

Commit

Permalink
Invoke clientID via github secret as well
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Feb 29, 2024
1 parent 214d84e commit 17a9965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/moodle-plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions tests/generator/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 17a9965

Please sign in to comment.