|
| 1 | +--- |
| 2 | +title: Week 4 |
| 3 | +author: Rajul Jha |
| 4 | +--- |
| 5 | +<!-- |
| 6 | +SPDX-License-Identifier: CC-BY-SA-4.0 |
| 7 | +
|
| 8 | +SPDX-FileCopyrightText: 2024 Rajul Jha <rajuljha49gmail.com> |
| 9 | +--> |
| 10 | + |
| 11 | +# Week 4 |
| 12 | +*(June 21, 2024 - June 27, 2024)* |
| 13 | + |
| 14 | +## Meeting 1 |
| 15 | +*(June 26, 2024)* |
| 16 | + |
| 17 | +## Attendees |
| 18 | +* [Rajul Jha](https://github.com/rajuljha) |
| 19 | +* [Kaushlendra](https://github.com/Kaushl2208) |
| 20 | +* [Shaheem Azmal](https://github.com/shaheemazmalmmd) |
| 21 | +* [Avinal Kumar](https://github.com/avinal) |
| 22 | +* Katharina |
| 23 | + |
| 24 | +## Discussions |
| 25 | + |
| 26 | +* Talked about how the differential scans need to work in detail, like: |
| 27 | + * Should they be triggered on `release` only? As it makes sense to scan between two different versions when a new release it being published. |
| 28 | + * Or should the user be able to scan between two different versions via any sort of trigger, like on `push` or `commit` as well? |
| 29 | +* Talked about the current implementation of custom keyword functionality, and how it can be |
| 30 | + extrapolated similarly for different scanners also. |
| 31 | +* We talked about fleshing out the design and implementation details first, then work on improving speed. |
| 32 | + |
| 33 | +## Work Done |
| 34 | + |
| 35 | +* Completed custom keyword functionality. [(#PR2769)](https://github.com/fossology/fossology/pull/2769) The details are as follows: |
| 36 | + * User can now setup a GH Action or Gitlab CI pipeline and pass environment variables to scan for custom keywords however they want. This gives them immense control over what they wan't to scan. |
| 37 | + * Added some validity checks for the `keyword.conf` file as during testing, I found out that the scanner breaks if an invalid file is passed to it. |
| 38 | + * Set up a test docker image [(rjknightmare/fo-ci-test:latest)](https://hub.docker.com/layers/rjknightmare/fo-ci-test/latest/images/sha256-ac72768b8c4383a4aca05a50cd53ae427db9645b42619ad82b53e38b3b876b38?context=repo) for testing. |
| 39 | +Here are the test results for the same: |
| 40 | + * GH Actions: |
| 41 | + |
| 42 | +  |
| 43 | + |
| 44 | + * Gitlab CI: |
| 45 | + |
| 46 | +  |
| 47 | + |
| 48 | +* Set up qemu emulator for the Github Actions environment to provide multiple architecture support, which also reduced the time for action execution significantly. |
| 49 | + |
| 50 | +  |
| 51 | + |
| 52 | +* Studied about how we can implement differential (between two different versions) scans and explored these use cases: |
| 53 | + * Use Case I: On `release` |
| 54 | + * Use Case II: On `push`, `commit` or any other event trigger. |
| 55 | + |
| 56 | + |
| 57 | +## Planning for next week |
| 58 | + |
| 59 | +* Study further on above use cases and work out a plan for the same. |
| 60 | +* Explore the GH Actions and Gitlab API's and use the best endpoints for our use cases. |
| 61 | +* Then start working on implementation of differential scans. |
0 commit comments