2022-04-18 17:28:56 +00:00
|
|
|
name: Dependency License Checks
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "go.mod"
|
|
|
|
workflow_dispatch: {}
|
|
|
|
|
2024-01-18 20:03:07 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-04-18 17:28:56 +00:00
|
|
|
jobs:
|
2022-12-16 20:53:04 +00:00
|
|
|
fossa-scan:
|
2022-10-06 17:14:13 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-04-18 17:28:56 +00:00
|
|
|
steps:
|
2022-12-16 20:53:04 +00:00
|
|
|
- name: "Checkout Code"
|
2024-05-13 16:40:37 +00:00
|
|
|
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
2022-04-18 17:28:56 +00:00
|
|
|
|
2022-12-16 20:53:04 +00:00
|
|
|
- name: "Run FOSSA Scan"
|
2024-02-26 06:50:09 +00:00
|
|
|
uses: fossas/fossa-action@47ef11b1e1e3812e88dae436ccbd2d0cbd1adab0 # main
|
2022-04-18 17:28:56 +00:00
|
|
|
with:
|
2022-12-16 20:53:04 +00:00
|
|
|
api-key: ${{secrets.FOSSA_API_KEY}}
|
2022-04-18 17:28:56 +00:00
|
|
|
|
2022-12-16 20:53:04 +00:00
|
|
|
- name: "Run FOSSA Test"
|
2024-02-26 06:50:09 +00:00
|
|
|
uses: fossas/fossa-action@47ef11b1e1e3812e88dae436ccbd2d0cbd1adab0 # main
|
2022-04-18 17:28:56 +00:00
|
|
|
with:
|
2022-12-16 20:53:04 +00:00
|
|
|
api-key: ${{secrets.FOSSA_API_KEY}}
|
|
|
|
run-tests: true
|