-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds GHA definition and component tests
- Loading branch information
1 parent
dc5adc3
commit 0fcde42
Showing
3 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2024 Dotanuki Labs | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: "appsweep-scan-action" | ||
description: "Scan Android or iOS artifacts for security issues with Guardsquare Appsweep" | ||
|
||
inputs: | ||
archive-file: | ||
description: > | ||
Path to the Android archive to scan. Accepted formats: '.aab' and '.apk' | ||
required: true | ||
symbols: | ||
description: > | ||
Path to the R8/proguard mappings file (Android) or folder with dSyms (iOS) | ||
required: false | ||
wait-for-summary: | ||
description: > | ||
Whether or not this Action should wait for scan outcomes and show the summary of issues | ||
default: "false" | ||
required: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- shell: bash | ||
run: | | ||
${{ github.action_path }}/src/main.sh \ | ||
--archive ${{ inputs.archive-file }} \ | ||
--extras ${{ inputs.symbols }} \ | ||
--summary ${{ inputs.wait-for-summary }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2024 Dotanuki Labs | ||
# SPDX-License-Identifier: MIT | ||
|
||
set -euo pipefail | ||
|
||
readonly android_fixture="https://github.com/Automattic/pocket-casts-android/releases/download/7.72/app-7.72.apk" | ||
readonly android_package="pocket-casts-android.apk" | ||
readonly ios_fixture="https://github.com/Automattic/pocket-casts-ios/releases/download/7.72/PocketCasts.xcarchive.zip" | ||
readonly ios_package="pocket-casts-ios.xcarchive" | ||
|
||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
cd "${script_dir%/*}" | ||
actual_dir=$(pwd) | ||
rm -rf "$actual_dir/.tmp" && mkdir "$actual_dir/.tmp" | ||
|
||
echo | ||
echo "Downloading fixtures to $HOME/.tmp" | ||
echo | ||
curl -fsSL -o "$actual_dir/.tmp/$android_package" -C - "$android_fixture" | ||
curl -fsSL -o "$actual_dir/.tmp/$ios_package" -C - "$ios_fixture" |