ci(.github): add fossa.yml #22
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 | |
| - v* | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| fossa-scan: | |
| # Don't attempt to run FOSSA on forks or on PRs from forks (no access to GH secrets) | |
| if: ${{ github.repository_owner == 'spinframework' && !github.event.pull_request.head.repo.fork }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: "Run FOSSA Scan" | |
| uses: fossas/[email protected] | |
| with: | |
| api-key: ${{ secrets.FOSSA_API_KEY }} |