Skip to content

Commit

Permalink
Merge pull request #12 from Ostorlab/feat/Update_the_actions_with_sbo…
Browse files Browse the repository at this point in the history
…m_files

Update the actions with sbom files.
  • Loading branch information
3asm authored Aug 22, 2023
2 parents a6c1123 + 5870f12 commit 61583e6
Show file tree
Hide file tree
Showing 4 changed files with 6,421 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/action_cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
- uses: actions/checkout@v2
- name: build ostorlab.apk
run: mv tests/InsecureBankv2.apk ostorlab.apk
- name: Get sbom file
run: |
mv tests/package-lock.json package-lock.json
- name: Launch Ostorlab scan
id: start_scan
uses: ./
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/action_with_extra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jobs:
- uses: actions/checkout@v2
- name: build ostorlab.apk
run: mv tests/InsecureBankv2.apk ostorlab.apk
- name: Get sbom file
run: |
mv tests/package-lock.json package-lock.json
- name: Launch Ostorlab scan
id: start_scan
uses: ./
Expand All @@ -18,6 +21,6 @@ jobs:
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
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 --sbom package-lock.json
- 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 }}/"
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,36 @@ jobs:
- 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 }}/"

```
```

### Sbom/Lock Files

You can supply your SBOM/Lock files to enhance the scan analysis, to do so use the `extra`
input to pass `--sbom***`, for example to add package-lock.json file use the following example:

```yaml
extra: --sbom package-lock.json
```
Here you can see the list of the supported files:
- buildscript-gradle.lockfile
- Cargo.lock,
- composer.lock,
- conan.lock,
- Gemfile.lock,
- go.mod,
- gradle.lockfile,
- mix.lock,
- Pipfile.lock,
- package-lock.json,
- packages.lock.json,
- pnpm-lock.yaml,
- poetry.lock,
- pom.xml,
- pubspec.lock,
- requirements.txt,
- yarn.lock,
### Test Credentials
Expand Down
Loading

0 comments on commit 61583e6

Please sign in to comment.