added security file #12
Workflow file for this run
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 --json > outdated.json || true | |
| - name: Run OSV Scanner for vulnerabilities | |
| uses: google/osv-scanner-action@v1 | |
| with: | |
| scan-args: |- | |
| --lockfile=pubspec.lock | |
| - name: Display outdated packages | |
| if: always() | |
| run: | | |
| echo "Checking for outdated packages..." | |
| dart pub outdated || true |