react-native-insider 5.4.0-nh → 5.4.1-nh
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# This is a basic workflow to create GitHub Issues using the Checkmarx CxFlow GitHub Action. It runs on a pull-request to the main branch.
|
|
2
|
+
#
|
|
3
|
+
# The following GitHub Secrets must be first defined:
|
|
4
|
+
# - CHECKMARX_URL
|
|
5
|
+
# - CHECKMARX_USER
|
|
6
|
+
# - CHECKMARX_PASSWORD
|
|
7
|
+
# - CHECKMARX_CLIENT_SECRET
|
|
8
|
+
# - GH_TOKEN
|
|
9
|
+
#
|
|
10
|
+
# Update the 'team' field to reflect the team name used in Checkmarx.
|
|
11
|
+
#
|
|
12
|
+
# For full documentation,including a list of all inputs, please refer to the README https://github.com/checkmarx-ts/checkmarx-cxflow-github-action
|
|
13
|
+
name: CxFlow-GitHub-Pull-Request
|
|
14
|
+
# Controls when the action will run. Triggers the workflow on push or pull request events but only for the master branch
|
|
15
|
+
on:
|
|
16
|
+
pull_request:
|
|
17
|
+
types: [ready_for_review]
|
|
18
|
+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel - this job is specifically configured to use the Checkmarx CxFlow Action
|
|
19
|
+
jobs:
|
|
20
|
+
# This workflow contains a single job called "build"
|
|
21
|
+
build:
|
|
22
|
+
# The type of runner that the job will run on - Ubuntu is required as Docker is leveraged for the action
|
|
23
|
+
runs-on: self-runner-node
|
|
24
|
+
steps:
|
|
25
|
+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
26
|
+
- uses: actions/checkout@v2
|
|
27
|
+
- name: Checkmarx CxFlow Action
|
|
28
|
+
id: checkmarx
|
|
29
|
+
uses: checkmarx-ts/checkmarx-cxflow-github-action@v1.4
|
|
30
|
+
with:
|
|
31
|
+
project: ${{ github.repository }}-PR
|
|
32
|
+
team: ${{ secrets.CHECKMARX_TEAMS }}
|
|
33
|
+
checkmarx_url: ${{ secrets.CHECKMARX_URL }} # To be stored in GitHub Secrets.
|
|
34
|
+
checkmarx_username: ${{ secrets.CHECKMARX_USERNAME }} # To be stored in GitHub Secrets.
|
|
35
|
+
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }} # To be stored in GitHub Secrets.
|
|
36
|
+
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }} # To be stored in GitHub Secrets.
|
|
37
|
+
scan-preset: Checkmarx Default
|
|
38
|
+
incremental: true
|
|
39
|
+
break_build: false
|
|
40
|
+
scanners: sast
|
|
41
|
+
params: --namespace=${{ github.repository_owner }} --cx-flow.filterStatus=New --repo-name=${{ github.event.repository.name }} --branch=${{ github.head_ref }} --cx-flow.filterSeverity --cx-flow.filterCategory
|
|
42
|
+
- name: The job has failed
|
|
43
|
+
if: ${{ failure() }}
|
|
44
|
+
run: |
|
|
45
|
+
python -c '
|
|
46
|
+
import json,sys,requests;
|
|
47
|
+
github_result = {"repository": "'${{ github.repository }}'", "server_url": "'${{ github.server_url }}'", "run_id": "'${{ github.run_id }}'"};
|
|
48
|
+
request = {"checkmarx_result": "empty", "github": github_result};
|
|
49
|
+
requests.post("'$LambdaWebHook'", json=request);'
|
|
50
|
+
env:
|
|
51
|
+
LambdaWebHook: ${{ secrets.CHECKMARX_LAMBDA_WEBHOOK }}
|
|
52
|
+
- name: Checkmarx Response Send to Lambda
|
|
53
|
+
id: slack-notification
|
|
54
|
+
if: ${{ success() }}
|
|
55
|
+
run: |
|
|
56
|
+
python -c '
|
|
57
|
+
import json,sys,requests;
|
|
58
|
+
output=open("./cx.sarif");
|
|
59
|
+
json_result=json.loads(output.read());
|
|
60
|
+
response="";
|
|
61
|
+
json_result = json_result.get("runs", [{}])[0].get("tool", {}).get("driver", {}).get("rules", []);
|
|
62
|
+
github_result = {"repository": "'${{ github.repository }}'", "server_url": "'${{ github.server_url }}'", "run_id": "'${{ github.run_id }}'"};
|
|
63
|
+
request = {"checkmarx_result": json_result, "github": github_result};
|
|
64
|
+
requests.post("'$LambdaWebHook'", json=request);'
|
|
65
|
+
env:
|
|
66
|
+
LambdaWebHook: ${{ secrets.CHECKMARX_LAMBDA_WEBHOOK }}
|
|
@@ -8,11 +8,11 @@ jobs:
|
|
|
8
8
|
runs-on: self-runner-node
|
|
9
9
|
steps:
|
|
10
10
|
- name: Checkout Repository
|
|
11
|
-
uses: actions/checkout@
|
|
11
|
+
uses: actions/checkout@v2
|
|
12
12
|
with:
|
|
13
13
|
fetch-depth: '2'
|
|
14
14
|
- name: Clone GitLeak Action
|
|
15
|
-
uses: actions/checkout@
|
|
15
|
+
uses: actions/checkout@v2
|
|
16
16
|
with:
|
|
17
17
|
repository: useinsider/gitleaks-action
|
|
18
18
|
ref: master
|
|
@@ -22,4 +22,17 @@ jobs:
|
|
|
22
22
|
run: npm install
|
|
23
23
|
working-directory: .github/actions/gitleaks-action
|
|
24
24
|
- name: gitleaks-action
|
|
25
|
-
uses: ./.github/actions/gitleaks-action
|
|
25
|
+
uses: ./.github/actions/gitleaks-action
|
|
26
|
+
- name: Send to Lambda
|
|
27
|
+
if: ${{ always() }}
|
|
28
|
+
run: |
|
|
29
|
+
python -c '
|
|
30
|
+
import json,sys,requests;
|
|
31
|
+
output=open("./results.sarif");
|
|
32
|
+
json_result=json.loads(output.read());
|
|
33
|
+
response="";
|
|
34
|
+
github_result = {"repository": "'${{ github.repository }}'", "server_url": "'${{ github.server_url }}'", "run_id": "'${{ github.run_id }}'"};
|
|
35
|
+
request = {"gitleaks_result": json_result, "github": github_result};
|
|
36
|
+
requests.post("'$LambdaWebHook'", json=request);'
|
|
37
|
+
env:
|
|
38
|
+
LambdaWebHook: ${{ secrets.CHECKMARX_LAMBDA_WEBHOOK }}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Trivy Vulnerability Scanner
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [ready_for_review]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
name: Build
|
|
8
|
+
runs-on: self-hosted
|
|
9
|
+
steps:
|
|
10
|
+
- name: Checkout code
|
|
11
|
+
uses: actions/checkout@v2
|
|
12
|
+
with:
|
|
13
|
+
fetch-depth: 0
|
|
14
|
+
- name: Install Trivy
|
|
15
|
+
run: |
|
|
16
|
+
sudo apt-get install wget apt-transport-https gnupg lsb-release
|
|
17
|
+
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
|
|
18
|
+
echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list
|
|
19
|
+
sudo apt-get update
|
|
20
|
+
sudo apt-get install trivy
|
|
21
|
+
- name: Trivy Scanner
|
|
22
|
+
run: |
|
|
23
|
+
python -c '
|
|
24
|
+
import glob, os;
|
|
25
|
+
files = glob.glob("**/Dockerfile", recursive=True);
|
|
26
|
+
count = 0;
|
|
27
|
+
for file in files:
|
|
28
|
+
diff_command1 = f"git diff origin/main -- {file} > diff1.txt";
|
|
29
|
+
diff_command2 = f"git diff origin/master -- {file} > diff2.txt";
|
|
30
|
+
os.system(diff_command1);
|
|
31
|
+
os.system(diff_command2);
|
|
32
|
+
main_lenght = len(open("./diff1.txt", "r").read());
|
|
33
|
+
master_lenght = len(open("./diff2.txt", "r").read());
|
|
34
|
+
if len(open("./diff1.txt", "r").read()) + len(open("./diff2.txt", "r").read()) > 0:
|
|
35
|
+
build_command = f"docker build -f {file} -t image{count} "+("/".join(file.split("/")[0:-1]) or ".");
|
|
36
|
+
os.system(build_command);
|
|
37
|
+
os.system(f"trivy image image{count} -f json -o trivy-result{count}.json --severity=CRITICAL,HIGH,MEDIUM");
|
|
38
|
+
count+=1;
|
|
39
|
+
print("Build Finished")'
|
|
40
|
+
- name: Trivy Response Send to Lambda
|
|
41
|
+
run: |
|
|
42
|
+
python -c '
|
|
43
|
+
import json,sys,requests,glob;
|
|
44
|
+
files = glob.glob("trivy-result*");
|
|
45
|
+
for file in files:
|
|
46
|
+
output=open(f"./{file}");
|
|
47
|
+
json_result=json.loads(output.read());
|
|
48
|
+
github_result = {"repository": "'${{ github.repository }}'", "server_url": "'${{ github.server_url }}'", "run_id": "'${{ github.run_id }}'"};
|
|
49
|
+
request = {"trivy_result": json_result, "github": github_result};
|
|
50
|
+
requests.post("'$LambdaWebHook'", json=request);'
|
|
51
|
+
env:
|
|
52
|
+
LambdaWebHook: ${{ secrets.CHECKMARX_LAMBDA_WEBHOOK }}
|
package/android/build.gradle
CHANGED
|
@@ -35,7 +35,7 @@ repositories {
|
|
|
35
35
|
|
|
36
36
|
dependencies {
|
|
37
37
|
implementation "com.facebook.react:react-native:${getVersionFromPartner('reactNativeVersion', '+')}"
|
|
38
|
-
implementation ('com.useinsider:insider:13.6.
|
|
38
|
+
implementation ('com.useinsider:insider:13.6.1-nh')
|
|
39
39
|
implementation ('com.useinsider:insiderhybrid:1.1.5')
|
|
40
40
|
|
|
41
41
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|