Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOSSA refinement #4359

Merged
merged 4 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@ version: 3

project:
id: github.com/replicatedhq/kurl

targets:
only:
- type: gomod
path: .
- type: npm
path: .

50 changes: 50 additions & 0 deletions .github/workflows/fossa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: FOSSA license scan

on:
pull_request_target: # this is safe as these scans do not execute provided code
branches:
- main
paths:
- go.sum
- package-lock.json

push:
branches:
- main

jobs:
fossa-scan-pr:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.number }}/merge
- name: "Install FOSSA"
uses: replicatedhq/action-fossa/install@main
- name: "Run FOSSA Scan"
uses: replicatedhq/action-fossa/scan@main
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
diff: true
diff-ref: ${{ github.event.pull_request.base.sha }}
debug: true

fossa-scan-merge:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v3
with:
depth: 2
- id: previous
run: echo "sha=$(git rev-parse HEAD~1)" >> "${GITHUB_OUTPUT}"
- name: "Install FOSSA"
uses: replicatedhq/action-fossa/install@main
- name: "Run FOSSA Scan"
uses: replicatedhq/action-fossa/scan@main
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
diff: true
diff-ref: ${{ steps.previous.outputs.sha }}
debug: true
18 changes: 0 additions & 18 deletions .github/workflows/pr-license-scan.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ sbom/

# ide
.vscode

# FOSSA
fossa.debug.*
fossa.telemetry.*