From e32ffbc828ef8e5553492eae6653df63d9447fbd Mon Sep 17 00:00:00 2001 From: Ihor Dvoretskyi Date: Wed, 9 Sep 2020 11:51:34 +0000 Subject: [PATCH 1/2] FOSSA scan enabled Signed-off-by: Ihor Dvoretskyi --- .github/workflows/fossa.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/fossa.yml diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml new file mode 100644 index 0000000..2429e9e --- /dev/null +++ b/.github/workflows/fossa.yml @@ -0,0 +1,27 @@ +name: FOSSA +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: "^1.14.x" + - run: go version + # Runs a set of commands to initialize and analyze with FOSSA + - name: run FOSSA analysis + env: + # FOSSA Push-Only API Token + FOSSA_API_KEY: '304657e2357ba57b416b94e6b119131b' + run: | + export GOPATH=$HOME/go + export PATH=$PATH:$(go env GOPATH)/bin + curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash + fossa init + fossa analyze From 4d21460923619f7d5b127443cced6412632113ef Mon Sep 17 00:00:00 2001 From: Ihor Dvoretskyi Date: Wed, 14 Apr 2021 12:38:04 +0000 Subject: [PATCH 2/2] FOSSA workflow updated Signed-off-by: Ihor Dvoretskyi --- .github/workflows/fossa.yml | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index 2429e9e..a3ef3b8 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -1,27 +1,18 @@ -name: FOSSA +name: FOSSA License Scanning + on: - push: - branches: [master] - pull_request: - branches: [master] + - pull_request + - push jobs: build: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - name: Checkout code + uses: actions/checkout@v2 + + - name: Run FOSSA scan and upload build data + uses: fossa-contrib/fossa-action@v1 with: - go-version: "^1.14.x" - - run: go version - # Runs a set of commands to initialize and analyze with FOSSA - - name: run FOSSA analysis - env: - # FOSSA Push-Only API Token - FOSSA_API_KEY: '304657e2357ba57b416b94e6b119131b' - run: | - export GOPATH=$HOME/go - export PATH=$PATH:$(go env GOPATH)/bin - curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash - fossa init - fossa analyze + fossa-api-key: 304657e2357ba57b416b94e6b119131b