Software Composition Analysis #75
This file contains 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: Software Composition Analysis | |
on: | |
pull_request: | |
branches: [ develop ] | |
schedule: | |
- cron: '23 22 * * 1' | |
jobs: | |
sca: | |
name: SCA | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup PHP with PECL extension 🔧 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
extensions: imagick | |
- name: Install 🔧 | |
run: | | |
composer validate | |
composer install --prefer-dist --no-progress --no-suggest | |
- name: Dependency Check | |
uses: dependency-check/[email protected] | |
id: depcheck | |
with: | |
project: 'saperstone-studios' | |
path: 'composer.lock' | |
format: 'ALL' | |
args: > | |
--failOnCVSS 8 | |
- name: Upload Lint Sarif 📊 | |
if: always() | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: reports/dependency-check-report.sarif | |
category: php | |
- name: Publish Result 📊 | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: OWASP Dependency Check Results | |
path: reports |