include a GitHub workflow for vulnerability scanning #1
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
| on: [pull_request] | |
| jobs: | |
| depchecktest: | |
| runs-on: ubuntu-latest | |
| name: depecheck_test | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Call setup | |
| run: ./gradlew setup | |
| - name: Depcheck | |
| uses: dependency-check/Dependency-Check_Action@main | |
| env: | |
| # actions/setup-java changes JAVA_HOME, so it needs to be reset to match the depcheck image | |
| JAVA_HOME: /opt/jdk | |
| id: Depcheck | |
| with: | |
| project: 'MPS-extensions' | |
| format: 'HTML' | |
| out: 'reports' | |
| - name: Upload Test results | |
| uses: actions/upload-artifact@master | |
| with: | |
| name: Depcheck report | |
| path: ${{github.workspace}}/reports |