File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 3
2+
3+ paths :
4+ exclude :
5+ - ./templates/**
Original file line number Diff line number Diff line change 1+ name : fossa
2+ on :
3+ push :
4+ branches :
5+ - main
6+ - v*
7+ pull_request :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ jobs :
13+ fossa-scan :
14+ # Don't attempt to run FOSSA on forks or on PRs from forks (no access to GH secrets)
15+ if : ${{ github.repository_owner == 'spinframework' && github.event.pull_request.head.repo.fork == false }}
16+ runs-on : ubuntu-latest
17+ permissions :
18+ contents : read
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - name : " Install fossa CLI"
23+ run : curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
24+
25+ - name : " Run FOSSA Scan"
26+ env :
27+ FOSSA_API_KEY : ${{ secrets.FOSSA_API_KEY }}
28+ run : fossa analyze -c .fossa.yml
29+
30+ # - name: "Run FOSSA Scan"
31+ # uses: fossas/[email protected] # Use a specific version if locking is preferred 32+ # env:
33+ # FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
34+ # with:
35+ # api-key: ${{ env.FOSSA_API_KEY }}
You can’t perform that action at this time.
0 commit comments