Skip to content

Commit 40147d6

Browse files
Add zScan workflow for mobile app security scanning
This workflow scans mobile app binaries for vulnerabilities using Zimperium zScan.
1 parent 1b61510 commit 40147d6

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/zscan.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
# The zimperium-zscan GitHub action scans your mobile app binary (iOS or Android)
7+
# and identifies security, privacy, and compliance-related vulnerabilities. ​
8+
#
9+
# Prerequisites:
10+
# * An active Zimperium zScan account is required. If you are not an existing Zimperium
11+
# zScan customer, please request a zSCAN demo by visiting https://www.zimperium.com/contact-us.
12+
# * Either GitHub Advanced Security (GHAS) or a public repository is required to display
13+
# issues and view the remediation information inside of GitHub code scanning alerts.​
14+
#
15+
# For additional information and setup instructions
16+
# please visit: https://github.com/Zimperium/zScanMarketplace#readme
17+
18+
name: "Zimperium zScan"
19+
20+
on:
21+
push:
22+
branches: [ "main" ]
23+
pull_request:
24+
branches: [ "main" ]
25+
26+
permissions:
27+
contents: read
28+
29+
jobs:
30+
zscan:
31+
name: zScan
32+
runs-on: ubuntu-latest
33+
permissions:
34+
contents: read # for actions/checkout to fetch code
35+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
36+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
40+
41+
- name: Execute gradle build
42+
run: ./gradlew build # Change this to build your mobile application
43+
44+
- name: Run Zimperium zScan
45+
uses: zimperium/zscanmarketplace@bfc6670f6648d796098c251ccefcfdb98983174d
46+
timeout-minutes: 60
47+
with:
48+
# REPLACE: Zimperium Client Environment Name
49+
client_env: env_string
50+
# REPLACE: Zimperium Client ID
51+
client_id: id_string
52+
# REPLACE: Zimperium Client Secret
53+
client_secret: ${{ secrets.ZSCAN_CLIENT_SECRET }}
54+
# REPLACE: The path to an .ipa or .apk
55+
app_file: app-release-unsigned.apk
56+
57+
- name: Upload SARIF file
58+
uses: github/codeql-action/upload-sarif@v3
59+
with:
60+
sarif_file: Zimperium.sarif

0 commit comments

Comments
 (0)