Skip to content

Commit 9d106e4

Browse files
Merge pull request #45 from DakshCodess/DakshCodess-patch-27
Create nowsecure.yml
2 parents c9bff97 + a26f9f1 commit 9d106e4

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/nowsecure.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
#
6+
# NowSecure: The Mobile Security Experts <https://www.nowsecure.com/>.
7+
#
8+
# To use this workflow, you must be an existing NowSecure customer with GitHub Advanced Security (GHAS) enabled for your
9+
# repository.
10+
#
11+
# If you *are not* an existing customer, click here to contact us for licensing and pricing details:
12+
# <https://info.nowsecure.com/github-request>.
13+
#
14+
# Instructions:
15+
#
16+
# 1. In the settings for your repository, click "Secrets" then "New repository secret". Name the secret "NS_TOKEN" and
17+
# paste in your Platform token. If you do not have a Platform token, or wish to create a new one for GitHub, visit
18+
# NowSecure Platform and go to "Profile & Preferences" then create a token labelled "GitHub".
19+
#
20+
# 2. Follow the annotated workflow below and make any necessary modifications then save the workflow to your repository
21+
# and review the "Security" tab once the action has run.
22+
23+
name: "NowSecure"
24+
25+
on:
26+
push:
27+
branches: [ main ]
28+
pull_request:
29+
branches: [ main ]
30+
31+
jobs:
32+
nowsecure:
33+
name: NowSecure
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v3
38+
39+
- name: Build your application
40+
run: ./gradlew assembleDebug # Update this to build your Android or iOS application
41+
42+
- name: Run NowSecure
43+
uses: nowsecure/nowsecure-action@3b439db31b6dce857b09f5222fd13ffc3159ad26
44+
with:
45+
token: ${{ secrets.NS_TOKEN }}
46+
app_file: app-debug.apk # Update this to a path to your .ipa or .apk
47+
group_id: {{ groupId }} # Update this to your desired Platform group ID
48+
49+
- name: Upload SARIF file
50+
uses: github/codeql-action/upload-sarif@v2
51+
with:
52+
sarif_file: NowSecure.sarif

0 commit comments

Comments
 (0)