Skip to content

Added vuln scan step for testing PRs #21

Added vuln scan step for testing PRs

Added vuln scan step for testing PRs #21

name: Test Pull Requests
on:
pull_request:
branches: [ main ]
# this allows us to manually run this job
workflow_dispatch:
jobs:
swift-code-checks:
name: Code Tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Lint code
run: swiftlint lint --config .swiftlint.yml --reporter github-actions-logging
- name: Build
run: xcodebuild -scheme UID2IMAPlugin -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"
- name: Run unit tests
run: xcodebuild test -scheme UID2IMAPluginTests -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"
- name: Vulnerability Scan
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v2
with:
scan_severity: HIGH,CRITICAL
failure_severity: CRITICAL,HIGH
publish_vulnerabilities: true