-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Ostorlab/feature/extra
Add an extra passing flag.
- Loading branch information
Showing
7 changed files
with
97 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ on: [push] | |
jobs: | ||
ostorlab_test: | ||
runs-on: ubuntu-latest | ||
name: Test ostorlab ci actions. | ||
name: Test ostorlab CI actions. | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build ostorlab.apk | ||
run: mv InsecureBankv2.apk ostorlab.apk | ||
run: mv tests/InsecureBankv2.apk ostorlab.apk | ||
- name: Launch Ostorlab scan | ||
id: start_scan | ||
uses: Ostorlab/[email protected] | ||
uses: ./ | ||
with: | ||
scan_profile: fast_scan # Specify which scan profile to use for the scan (check scan section). | ||
asset_type: android-apk # type of asset to scan. | ||
|
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,27 @@ | ||
on: | ||
schedule: | ||
# Run at 01:00 on Saturday. | ||
- cron: '0 1 * * SAT' | ||
|
||
jobs: | ||
ostorlab_test: | ||
runs-on: ubuntu-latest | ||
name: Test ostorlab CI actions. | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build ostorlab.apk | ||
run: mv tests/InsecureBankv2.apk ostorlab.apk | ||
- name: Launch Ostorlab scan | ||
id: start_scan | ||
uses: ./ | ||
with: | ||
scan_profile: fast_scan # Specify which scan profile to use for the scan (check scan section). | ||
asset_type: android-apk # type of asset to scan. | ||
target: ostorlab.apk # path for target tto scan. | ||
scan_title: title_scan_ci # type a title for your scan. | ||
ostorlab_api_key: ${{ secrets.ostorlab_api_key }} # your secret api key. | ||
break_on_risk_rating: HIGH # Wait for the scan results and force the action to fail if the scan risk is higher | ||
max_wait_minutes: 30 | ||
extra: --test-credentials-login test_login --test-credentials-password test_pass --test-credentials-role ci_role --test-credentials-name foo1 --test-credentials-value bar1 --test-credentials-name foo2 --test-credentials-value bar2 | ||
- name: Get scan id | ||
run: echo "Scan Created with id ${{ steps.start_scan.outputs.scan_id }} you can access the full report at https://report.ostorlab.co/scan/${{ steps.start_scan.outputs.scan_id }}/" |
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,23 @@ | ||
on: [push] | ||
jobs: | ||
ostorlab_test: | ||
runs-on: ubuntu-latest | ||
name: Test ostorlab CI actions. | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build ostorlab.apk | ||
run: mv tests/InsecureBankv2.apk ostorlab.apk | ||
- name: Launch Ostorlab scan | ||
id: start_scan | ||
uses: ./ | ||
with: | ||
scan_profile: fast_scan # Specify which scan profile to use for the scan (check scan section). | ||
asset_type: android-apk # type of asset to scan. | ||
target: ostorlab.apk # path for target tto scan. | ||
scan_title: title_scan_ci # type a title for your scan. | ||
ostorlab_api_key: ${{ secrets.ostorlab_api_key }} # your secret api key. | ||
break_on_risk_rating: HIGH # Wait for the scan results and force the action to fail if the scan risk is higher | ||
max_wait_minutes: 30 | ||
extra: --test-credentials-login test_login --test-credentials-password test_pass --test-credentials-role ci_role --test-credentials-name foo1 --test-credentials-value bar1 --test-credentials-name foo2 --test-credentials-value bar2 | ||
- name: Get scan id | ||
run: echo "Scan Created with id ${{ steps.start_scan.outputs.scan_id }} you can access the full report at https://report.ostorlab.co/scan/${{ steps.start_scan.outputs.scan_id }}/" |
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
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
File renamed without changes.