ci(.github): add fossa.yml #7
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: {} | |
| permissions: {} | |
| jobs: | |
| fossa-scan: | |
| if: github.repository_owner == 'spinframework' # FOSSA is not intended to run on forks. | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: "Checkout code" | |
| uses: actions/checkout@v4 | |
| - name: "Run FOSSA Scan" | |
| uses: fossas/[email protected] # Use a specific version if locking is preferred | |
| with: | |
| api-key: ${{ secrets.FOSSA_API_KEY }} | |
| config: .fossa-config.yml |