Skip to content

Commit 851142c

Browse files
committed
fosso
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 6cc382a commit 851142c

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/foss.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: FOSSology Zephyr + west modules
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- v*-branch
8+
- collab-*
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
fossology:
15+
runs-on:
16+
group: zephyr-runner-v2-linux-x64-4xlarge
17+
container:
18+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.29.2.20260422
19+
options: '--entrypoint /bin/bash'
20+
strategy:
21+
fail-fast: false
22+
timeout-minutes: 1440
23+
24+
steps:
25+
- name: Checkout Zephyr
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
27+
with:
28+
path: workspace/zephyr
29+
fetch-depth: 1
30+
31+
- name: Initialize and update west modules
32+
working-directory: workspace
33+
run: |
34+
west init -l zephyr
35+
west config --global update.narrow true
36+
west update
37+
38+
- name: Show workspace contents
39+
working-directory: workspace
40+
run: |
41+
west list
42+
find . -maxdepth 2 -type d | sort
43+
44+
- name: FOSSology scan of Zephyr + west modules
45+
uses: fossology/fossology-action@v1
46+
with:
47+
scan_mode: scan-dir
48+
scan_dir: workspace
49+
scanners: "nomos ojo copyright keyword"
50+
report_format: SPDX_JSON
51+
52+
- name: Upload FOSSology results
53+
if: success() || failure()
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: fossology-zephyr-west-results
57+
path: results/

0 commit comments

Comments
 (0)