Example maven based project #6
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: "Test" | |
on: [pull_request] | |
env: | |
DOCKER_BUILDKIT: 1 | |
jobs: | |
check-container-scanning-examples: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Ensure example docker images can be built | |
run: make build-images | |
# TODO: Add remaining project and languages | |
check-static-analysis: | |
strategy: | |
fail-fast: true | |
matrix: | |
baseDir: [ | |
'./javascript/pnpm', | |
'./javascript/pnpm-v6', | |
'./javascript/pnpm-v6-workspace', | |
'./reachability/java/vulnerable-function-used', | |
'./reachability/java/vulnerable-function-not-used', | |
] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install fossa-cli | |
run: | | |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash | |
- uses: actions/setup-java@v3 | |
if: ${{ startsWith(matrix.baseDir, './reachability/java') }} | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: fossa analyze ${{ matrix.baseDir }} -o | |
run: fossa analyze ${{ matrix.baseDir }} -o |