Skip to content

Commit 03ccf95

Browse files
Merge pull request #263 from rajuljha/chore/report/week7
chore(report): Add week 7 report for CI Scanner project Reviewed-by: shaheem.azmal@siemens.com
2 parents a3b1256 + 87d0aeb commit 03ccf95

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
title: Week 7
3+
author: Rajul Jha
4+
tags: [gsoc24, CI]
5+
---
6+
<!--
7+
SPDX-License-Identifier: CC-BY-SA-4.0
8+
9+
SPDX-FileCopyrightText: 2024 Rajul Jha <rajuljha49gmail.com>
10+
-->
11+
12+
# Week 7
13+
*(July, 12 2024 - July 18, 2024)*
14+
15+
## Meeting 1
16+
*(July 17, 2024)*
17+
18+
## Attendees
19+
20+
* [Rajul Jha](https://github.com/rajuljha)
21+
* [Shaheem Azmal](https://github.com/shaheemazmalmmd)
22+
* [Kaushlendra](https://github.com/Kaushl2208)
23+
* [Avinal Kumar](https://github.com/avinal)
24+
25+
## Discussions
26+
27+
* Discussed the work done on the Fossology Github Action [#PR1](https://github.com/fossology/fossology-action/pull/1) with the mentors.
28+
* Discussed some issues that were encountered during the testing of [#PR2784](https://github.com/fossology/fossology/pull/2784) by [Kaushal](https://github.com/Kaushl2208)
29+
* Had a brief discussion on how to improve the examples that are given in the Github workflow file.
30+
* [Shaheem](https://github.com/shaheemazmalmmd) mentioned I should also start working on the documentation part for the Wiki.
31+
* Had a fun discussion about what to name the new repository.😁
32+
33+
## Work Done
34+
35+
* Completed the initial work on Fossology Action repository and sent out a [#PR1](https://github.com/fossology/fossology-action/pull/1) for the same.
36+
* The new Github Action allows the users to scan using the fossology scanners ( `nomos`, `ojo` and `copyright` ) inside their Github Actions workflows in just a few lines of configuration.
37+
38+
```yaml
39+
name: License scan on PR
40+
on: [pull_request]
41+
jobs:
42+
compliance_check:
43+
runs-on: ubuntu-latest
44+
name: Perform license scan
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v2
48+
49+
- name: License check
50+
id: compliance
51+
uses: fossology/fossology-action@v1
52+
with:
53+
scan_mode: ''
54+
scanners: 'nomos ojo'
55+
report_format: 'SPDX_JSON'
56+
57+
```
58+
59+
* User can scan in various scanning modes like `diff`, `repo` and `differential`.
60+
* User can retrieve the scan results report as an artifact in Github Actions in various formats like `SPDX_JSON`, `SPDX_YAML`, `SPDX_RDF` and `SPDX_TAG_VALUE` by passing the format as an input with the action.
61+
* The action also allows the user to pass various custom parameters like passing their own `keyword.conf` or `allowlist.json` file.
62+
63+
```yaml
64+
scan_mode:
65+
description: "Specifies whether to perform diff scans, repo scans, or differential scans. Leave blank for diff scans."
66+
required: false
67+
default: ""
68+
scanners:
69+
description: "Space-separated list of scanners to invoke."
70+
required: true
71+
default: "nomos ojo copyright keyword"
72+
report_format:
73+
description: "Report format (SPDX_JSON,SPDX_RDF,SPDX_YAML,SPDX_TAG_VALUE) to print the results in."
74+
required: false
75+
default: ""
76+
keyword_conf_file_path:
77+
description: "Path to custom keyword.conf file. (Use only with keyword scanner set to True)"
78+
required: false
79+
default: ""
80+
allowlist_file_path:
81+
description: "Path to allowlist.json file."
82+
required: false
83+
default: ""
84+
from_tag:
85+
description: "Starting tag to scan from. (Use only with differential mode)"
86+
required: false
87+
default: ""
88+
to_tag:
89+
description: "Ending tag to scan to. (Use only with differential mode)"
90+
required: false
91+
default: ""
92+
```
93+
94+
* Fixed some of the bugs in the previous PR's before they were merged.
95+
* Got a review from [Gaurav](https://github.com/GMishx) to reduce code duplication at some places and try to maintain backward compatibility in the code.
96+
97+
## Planning for next week
98+
* Refactor the code in the previous PR's to reduce code duplication (following the DRY principle) and better function handling.
99+
* Try to complete the line number part for the scanner parts as well.
100+
* Research about the next step for allowing the users to download scanned dependencies.

0 commit comments

Comments
 (0)