File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ jobs:
40
40
- name : Add GOPATH to GITHUB_ENV
41
41
run : echo "GOPATH=$(go env GOPATH)" >>"$GITHUB_ENV"
42
42
- name : Scan and upload FOSSA data (Linux/Mac)
43
- if : github.ref == 'refs/heads/master' && matrix.platform != 'windows-latest'
43
+ if : env.FOSSA_API_KEY != '' && github.ref == 'refs/heads/master' && matrix.platform != 'windows-latest'
44
44
run : |
45
45
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash
46
46
fossa analyze
47
47
env :
48
48
FOSSA_API_KEY : ${{ secrets.FOSSA_API_KEY }}
49
49
- name : Scan and upload FOSSA data (Windows)
50
- if : github.ref == 'refs/heads/master' && matrix.platform == 'windows-latest'
50
+ if : env.FOSSA_API_KEY != '' && github.ref == 'refs/heads/master' && matrix.platform == 'windows-latest'
51
51
run : |
52
52
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/fossas/fossa-cli/master/install.ps1'))
53
53
C:\ProgramData\fossa-cli\fossa.exe analyze
You can’t perform that action at this time.
0 commit comments