Skip to content

Commit

Permalink
FOSSA license scanning GitHub Action added (#860)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dvoretskyi <ihor@linux.com>
  • Loading branch information
idvoretskyi authored May 29, 2020
1 parent 6b0f9c1 commit 3f2cd59
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: FOSSA
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
# build-tools is built from ../../tools/build-tools.Dockerfile
container: kedacore/build-tools:latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.13.1"
- run: go version
# Runs a set of commands to initialize and analyze with FOSSA
- name: run FOSSA analysis
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: |
export GOPATH=$HOME/go
export PATH=$PATH:$(go env GOPATH)/bin
fossa init
fossa analyze
3 changes: 3 additions & 0 deletions tools/build-tools.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ RUN RELEASE_VERSION=v0.12.0 && \
ENV PATH=${PATH}:/usr/local/go/bin \
GOROOT=/usr/local/go \
GOPATH=/go

# Install FOSSA tooling
RUN curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash

0 comments on commit 3f2cd59

Please sign in to comment.