name: FOSSA on: push: branches: [main] pull_request: branches: [main] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: "^1.14.x" - name: Add GOPATH to GITHUB_ENV run: echo "GOPATH=$(go env GOPATH)" >>"$GITHUB_ENV" - name: Add GOPATH to GITHUB_PATH run: echo "$GOPATH/bin" >>"$GITHUB_PATH" - name: Run FOSSA scan and upload build data uses: fossa-contrib/fossa-action@v1 with: # FOSSA Push-Only API Token fossa-api-key: 5ee8bf422db1471e0bcf2bcb289185de github-token: ${{ github.token }}