2022-09-21 14:04:45 -05:00
|
|
|
|
# This workflow uses actions that are not certified by GitHub.
|
|
|
|
|
|
# They are provided by a third-party and are governed by
|
|
|
|
|
|
# separate terms of service, privacy policy, and support
|
|
|
|
|
|
# documentation.
|
|
|
|
|
|
#
|
2022-11-04 20:45:41 +01:00
|
|
|
|
# The zimperium-zscan GitHub action scans your mobile app binary (iOS or Android)
|
2022-09-21 14:04:45 -05:00
|
|
|
|
# and identifies security, privacy, and compliance-related vulnerabilities.
|
|
|
|
|
|
#
|
2022-11-08 14:09:19 +01:00
|
|
|
|
# Prerequisites:
|
2022-09-21 14:04:45 -05:00
|
|
|
|
# * An active Zimperium zScan account is required. If you are not an existing Zimperium
|
|
|
|
|
|
# zScan customer, please request a zSCAN demo by visiting https://www.zimperium.com/contact-us.
|
2022-11-04 20:45:41 +01:00
|
|
|
|
# * Either GitHub Advanced Security (GHAS) or a public repository is required to display
|
2022-11-08 14:09:19 +01:00
|
|
|
|
# issues and view the remediation information inside of GitHub code scanning alerts.
|
2022-09-21 14:04:45 -05:00
|
|
|
|
#
|
2022-11-04 20:45:41 +01:00
|
|
|
|
# For additional information and setup instructions
|
2022-09-21 14:04:45 -05:00
|
|
|
|
# please visit: https://github.com/Zimperium/zScanMarketplace#readme
|
|
|
|
|
|
|
|
|
|
|
|
name: "Zimperium zScan"
|
|
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
|
push:
|
|
|
|
|
|
branches: [ $default-branch, $protected-branches ]
|
|
|
|
|
|
pull_request:
|
|
|
|
|
|
branches: [ $default-branch ]
|
|
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
zscan:
|
|
|
|
|
|
name: zScan
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
permissions:
|
|
|
|
|
|
contents: read # for actions/checkout to fetch code
|
|
|
|
|
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
2022-11-04 20:45:41 +01:00
|
|
|
|
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
2022-09-21 14:04:45 -05:00
|
|
|
|
steps:
|
|
|
|
|
|
- name: Checkout repository
|
2024-01-03 02:09:21 -05:00
|
|
|
|
uses: actions/checkout@v4
|
2022-09-21 14:04:45 -05:00
|
|
|
|
|
|
|
|
|
|
- name: Execute gradle build
|
|
|
|
|
|
run: ./gradlew build # Change this to build your mobile application
|
|
|
|
|
|
|
|
|
|
|
|
- name: Run Zimperium zScan
|
|
|
|
|
|
uses: zimperium/zscanmarketplace@bfc6670f6648d796098c251ccefcfdb98983174d
|
|
|
|
|
|
timeout-minutes: 60
|
|
|
|
|
|
with:
|
|
|
|
|
|
# REPLACE: Zimperium Client Environment Name
|
|
|
|
|
|
client_env: env_string
|
|
|
|
|
|
# REPLACE: Zimperium Client ID
|
|
|
|
|
|
client_id: id_string
|
|
|
|
|
|
# REPLACE: Zimperium Client Secret
|
|
|
|
|
|
client_secret: ${{ secrets.ZSCAN_CLIENT_SECRET }}
|
|
|
|
|
|
# REPLACE: The path to an .ipa or .apk
|
|
|
|
|
|
app_file: app-release-unsigned.apk
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload SARIF file
|
2024-04-25 13:24:02 -04:00
|
|
|
|
uses: github/codeql-action/upload-sarif@v3
|
2022-09-21 14:04:45 -05:00
|
|
|
|
with:
|
|
|
|
|
|
sarif_file: Zimperium.sarif
|