File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-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 : |
16+ github.repository_owner == 'spinframework' &&
17+ !github.event.pull_request.head.repo.fork
18+ runs-on : ubuntu-latest
19+ permissions :
20+ contents : read
21+ steps :
22+ - uses : actions/checkout@v4
23+
24+ - name : " Install fossa CLI"
25+ run : curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
26+
27+ - name : " Run FOSSA Scan"
28+ env :
29+ FOSSA_API_KEY : ${{ secrets.FOSSA_API_KEY }}
30+ run : fossa analyze -c .fossa.yml
31+
32+ # - name: "Run FOSSA Scan"
33+ # uses: fossas/[email protected] # Use a specific version if locking is preferred 34+ # env:
35+ # FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
36+ # with:
37+ # api-key: ${{ env.FOSSA_API_KEY }}
You can’t perform that action at this time.
0 commit comments