Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves docs #15

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ with a few goodies, in particular adding support to iOS deployables.

## Using

An example Workflow
An example Workflow for Android projects

```yaml
name: CI

on: [push]
jobs:
build-and-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@latest

# Run any tasks that output a deployable artifact
# eg ./gradlew app:assembleRelease
- run: ./build/my/product.sh

# .
# .
# .

- uses: dotanuki-labs/appsweep-scan-action@latest
with:
archive-file: app/build/outputs/apk/release/my-product.apk
env:
# Don't forget to add this as an environment variable
APPSWEEP_API_KEY: ${{ secrets.APPSWEEP_MY_PRODUCT_KEY }}

env:
# Don't forget to add this EXACT 'APPSWEEP_API_KEY' environment variable
# It's required by guardsquare-cli
APPSWEEP_API_KEY: ${{ secrets.APPSWEEP_MY_PRODUCT_KEY }}

jobs:
build-and-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@latest

# Run any tasks that output a deployable artifact
- run: ./gradlew app:assembleRelease

- uses: dotanuki-labs/appsweep-scan-action@latest
with:
archive-file: app/build/outputs/apk/release/my-product.apk

```

> [!WARNING]
Expand All @@ -56,9 +56,9 @@ This action accepts the following inputs:

Regarding values accepted by the inputs:

- `archive-file` accepts '.aab', '.apk', '.ipa', '.xcarchive' file
- `archive-file` accepts `.aab`, `.apk`, `.ipa`, `.xcarchive` file
- `symbols` accepts either a `mapping.txt` file (Android) or folder with dSyms (iOS)
- `wait-for-summary` accepts any string to flag opt-in
- `wait-for-summary` accepts any string, boolean or integer to flag opt-in

In addition to that:

Expand All @@ -67,7 +67,7 @@ In addition to that:

Last, but not least, `APPSWEEP_API_KEY` is mandatory in the execution since it's
required by `guardsquare-cli`. You can provision it scoped to a
Step (like the previous example), to Job or Workflow
`Step`, `Job` or `Workflow`.

## License

Expand Down