Skip to content

Commit 5fcc100

Browse files
committed
ci: Add workflow to run a FOSSA scan
Apparently the "Quick Import" feature from FOSSA is not good enough for Rust projects, and we need to run the FOSSA CLI tool, either ourselves or using the official GitHub Action. This commit introduces a new workflow that uses this Action to perform a scan on Pull Requests and on pushes to the main branch. Signed-off-by: Quentin Monnet <[email protected]>
1 parent a6e61c5 commit 5fcc100

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/fossa.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Run FOSSA scan
2+
#
3+
# Resources:
4+
#
5+
# - GitHub Action:
6+
# https://github.com/marketplace/actions/official-fossa-action
7+
#
8+
# - Reports:
9+
# https://app.fossa.com/projects/custom%252B43661%252Fgithub.com%252Fgithedgehog%252Fdataplane/
10+
11+
on:
12+
pull_request: { }
13+
push:
14+
branches:
15+
- main
16+
17+
concurrency:
18+
group: "${{ github.workflow }}:${{ github.event.pull_request.number || github.event.after || github.event.merge_group && github.run_id }}"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
fossa-scan:
23+
name: "FOSSA Scan"
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: fossas/fossa-action@v1
28+
with:
29+
api-key: ${{secrets.FOSSA_API_KEY}}

0 commit comments

Comments
 (0)