DX | 12-01-2026 | Release #14
This file contains hidden or 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
| name: Source Composition Analysis Scan | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| security-sca: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Dart | |
| uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: stable | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Check for outdated dependencies | |
| run: dart pub outdated || true | |
| - name: Run OSV Scanner for vulnerabilities | |
| run: | | |
| curl -L https://github.com/google/osv-scanner/releases/latest/download/osv-scanner_linux_amd64 -o osv-scanner | |
| chmod +x osv-scanner | |
| ./osv-scanner --lockfile=pubspec.lock --format=json --output=osv-results.json || true | |
| - name: Display OSV Scanner results | |
| if: always() | |
| run: | | |
| if [ -f osv-results.json ]; then | |
| echo "OSV Scanner Results:" | |
| cat osv-results.json | |
| else | |
| echo "No vulnerabilities found!" | |
| fi |