Skip to content

Commit

Permalink
Added vuln scan step for testing PRs (#12)
Browse files Browse the repository at this point in the history
* Added vuln scan step for testing PRs

* Changed vuln scan to use default args

* Changed MacOS version in test pipeline

* Moved vulnerability scan to separate jobs
  • Loading branch information
gmsdelmundo authored Apr 29, 2024
1 parent fe84d03 commit 2e144a1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ on:
workflow_dispatch:

jobs:

swift-code-checks:
name: Code Tests
runs-on: macos-latest
runs-on: macos-12

steps:
- uses: actions/checkout@v3
Expand All @@ -23,4 +22,13 @@ jobs:
run: xcodebuild -scheme UID2GMAPlugin -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"

- name: Run unit tests
run: xcodebuild test -scheme UID2GMAPluginTests -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"
run: xcodebuild test -scheme UID2GMAPluginTests -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"

vulnerability-scan:
name: Vulnerability Scan
runs-on: ubuntu-latest
needs: [swift-code-checks]

steps:
- name: Vulnerability Scan
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v2
5 changes: 5 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List any vulnerability that are to be accepted
# See https://aquasecurity.github.io/trivy/v0.35/docs/vulnerability/examples/filter/
# for more details
# e.g.
# CVE-2022-3996

0 comments on commit 2e144a1

Please sign in to comment.