2020-12-17 20:48:24 +02:00
|
|
|
name: FOSSA
|
|
|
|
on:
|
|
|
|
push:
|
2022-08-23 15:30:32 +02:00
|
|
|
branches: [main]
|
2020-12-17 20:48:24 +02:00
|
|
|
pull_request:
|
2022-08-23 15:30:32 +02:00
|
|
|
branches: [main]
|
2020-12-17 20:48:24 +02:00
|
|
|
|
2022-01-15 19:57:35 -08:00
|
|
|
permissions: read-all
|
|
|
|
|
2020-12-17 20:48:24 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-02 10:55:41 +02:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
|
|
|
|
2022-01-13 10:53:05 +05:30
|
|
|
- uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4 # v2.1.5
|
2020-12-17 20:48:24 +02:00
|
|
|
with:
|
2022-08-25 13:54:49 +05:30
|
|
|
go-version: "^1.18.x"
|
2022-09-02 10:55:41 +02:00
|
|
|
|
2020-12-17 20:48:24 +02:00
|
|
|
- name: run FOSSA analysis
|
|
|
|
env:
|
|
|
|
# FOSSA Push-Only API Token
|
|
|
|
FOSSA_API_KEY: '760a966bd1687152ecfe23386d841df4'
|
|
|
|
run: |
|
|
|
|
export GOPATH=$HOME/go
|
|
|
|
export PATH=$PATH:$(go env GOPATH)/bin
|
2022-08-23 15:30:32 +02:00
|
|
|
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
|
2020-12-17 20:48:24 +02:00
|
|
|
fossa init
|
2022-08-25 13:54:49 +05:30
|
|
|
fossa analyze
|