test: fix proxy e2e approval mode; add auto-approve e2e coverage #48
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: CVE Scanning | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| jobs: | |
| depcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6 | |
| - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # ratchet:actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| cache: gradle | |
| - name: Build project with Gradle | |
| run: ./gradlew clean testClasses | |
| - name: Cache CVE data | |
| id: cache-cve | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # ratchet:actions/cache@v5 | |
| with: | |
| path: ~/.gradle/dependency-check-data/ | |
| key: depcheck-db-${{ github.run_id }} | |
| restore-keys: depcheck-db- | |
| - name: Depcheck | |
| run: ./gradlew dependencyCheckAggregate --info | |
| timeout-minutes: 180 | |
| env: | |
| NVD_API_KEY: ${{ secrets.NVD_API_KEY }} | |
| - name: Upload Test results | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # ratchet:actions/upload-artifact@v7 | |
| with: | |
| name: Depcheck report | |
| path: ${{ github.workspace }}/build/reports/dependency-check* |