ci(.github): add fossa.yml #24
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 | ||
| if: github.repository_owner == 'spinframework' | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| FOSSA_API_KEY: d21f74dd762b95fa3e318b70e8428ca5 # This is a push-only token that is safe to be exposed | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: "Run FOSSA Scan" | ||
| uses: fossas/[email protected] | ||
| with: | ||
| api-key: ${{ env.FOSSA_API_KEY }} | ||
| - name: "Run FOSSA Test" | ||
| if: github.event == pull_request | ||
|
Check failure on line 30 in .github/workflows/fossa.yml
|
||
| uses: fossas/[email protected] | ||
| with: | ||
| api-key: ${{ env.FOSSA_API_KEY }} | ||
| run-tests: true | ||
| test-diff-revision: ${{ github.event.pull_request.base.sha }} | ||