Skip to content

Commit 41d8c14

Browse files
Merge pull request #86 from Flutterwave/dev
Pull changes from the dev branch
2 parents ed39a22 + f2c32be commit 41d8c14

2 files changed

Lines changed: 40 additions & 13 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Security scan on all changes (Commits/PRs)
2+
3+
on:
4+
push:
5+
branches: ['main', 'master', 'pilot', 'dev']
6+
pull_request:
7+
types:
8+
- opened
9+
10+
jobs:
11+
code-check:
12+
runs-on: ubuntu-latest
13+
env:
14+
OS: ubuntu-latest
15+
steps:
16+
- name: checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Checkmarx One ClI Action
20+
uses: checkmarx/ast-github-action@main
21+
with:
22+
project_name: PHP-v3
23+
cx_tenant: Flutterwave
24+
base_uri: https://eu.ast.checkmarx.net/
25+
cx_client_id: ${{ secrets.CX_CLIENT_ID }}
26+
cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }}
27+
additional_params: --scan-types sast,iac-security,api-security,sca,container-security

src/EventHandlers/EventTracker.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ public static function setResponseTime(): void
2727
*/
2828
public static function sendAnalytics($title): void
2929
{
30-
if (self::$response_time <= 0) {
31-
self::setResponseTime();
32-
}
30+
// if (self::$response_time <= 0) {
31+
// self::setResponseTime();
32+
// }
3333

34-
$url = 'https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent';
34+
// $url = 'https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent';
3535

36-
$data = [
37-
'publicKey' => getenv('PUBLIC_KEY'),
38-
'language' => 'PHP V3',
39-
'version' => '1.0.0',
40-
'title' => $title,
41-
'message' => self::$response_time,
42-
];
36+
// $data = [
37+
// 'publicKey' => getenv('PUBLIC_KEY'),
38+
// 'language' => 'PHP V3',
39+
// 'version' => '1.0.0',
40+
// 'title' => $title,
41+
// 'message' => self::$response_time,
42+
// ];
4343

44-
$response = (new Http(static::$config))->request($data, 'POST', $url, true);
44+
// $response = (new Http(static::$config))->request($data, 'POST', $url, true);
4545

46-
self::resetTime();
46+
// self::resetTime();
4747
}
4848

4949
private static function resetTime(): void

0 commit comments

Comments
 (0)