Refactor architecture validation gates #103
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| fossa: | |
| name: fossa | |
| runs-on: ubuntu-latest | |
| env: | |
| FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} | |
| steps: | |
| - name: Skip when FOSSA_API_KEY is not configured | |
| if: ${{ env.FOSSA_API_KEY == '' }} | |
| run: echo "FOSSA_API_KEY is not configured; skipping FOSSA scan." | |
| - uses: actions/checkout@v4 | |
| if: ${{ env.FOSSA_API_KEY != '' }} | |
| with: | |
| ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
| - name: Run FOSSA scan | |
| if: ${{ env.FOSSA_API_KEY != '' }} | |
| uses: fossas/fossa-action@v1.9.0 | |
| with: | |
| api-key: ${{ secrets.FOSSA_API_KEY }} | |
| pinned-cli-version: v3.17.1 | |
| - name: Run FOSSA policy test | |
| if: ${{ env.FOSSA_API_KEY != '' }} | |
| uses: fossas/fossa-action@v1.9.0 | |
| with: | |
| api-key: ${{ secrets.FOSSA_API_KEY }} | |
| pinned-cli-version: v3.17.1 | |
| run-tests: true |