ci: set fail-fast false for cross-platform matrix #28
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: FOSSA license scan | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: fossa-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| fossa: | |
| name: License compliance | |
| env: | |
| FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check API key | |
| id: check | |
| run: | | |
| if [ -z "$FOSSA_API_KEY" ]; then | |
| echo "skip=true" >> "$GITHUB_OUTPUT" | |
| echo "FOSSA_API_KEY not configured, skipping" | |
| fi | |
| - name: Checkout | |
| if: steps.check.outputs.skip != 'true' | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Run FOSSA analysis | |
| if: steps.check.outputs.skip != 'true' | |
| uses: fossas/fossa-action@ff70fe9fe17cbd2040648f1c45e8ec4e4884dcf3 # v1 | |
| with: | |
| api-key: ${{ secrets.FOSSA_API_KEY }} | |
| - name: Run FOSSA test | |
| if: steps.check.outputs.skip != 'true' | |
| uses: fossas/fossa-action@ff70fe9fe17cbd2040648f1c45e8ec4e4884dcf3 # v1 | |
| with: | |
| api-key: ${{ secrets.FOSSA_API_KEY }} | |
| run-tests: true |