Skip to content

Commit 918a5f8

Browse files
authored
[#112] Add third party tools to project (#126)
* feat(#112): project - plug Renovate Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> * feat(#112): project - plug Gitleaks Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> * doc(#112): add details about third-party tools plugged to repo Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> --------- Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com>
1 parent cda6bc6 commit 918a5f8

File tree

6 files changed

+2928
-6
lines changed

6 files changed

+2928
-6
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Software Name: floss-toolbox
2+
# SPDX-FileCopyrightText: Copyright (c) Orange SA
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This software is distributed under the Apache 2.0 license,
6+
# the text of which is available at https://opensource.org/license/apache-2-0
7+
# or see the "LICENSE.txt" file for more details.
8+
#
9+
# Authors: See CONTRIBUTORS.txt
10+
# Software description: A toolbox of scripts to help work of forges admins and open source referents
11+
12+
name: gitleaks
13+
on: [pull_request, push, workflow_dispatch]
14+
jobs:
15+
scan:
16+
name: gitleaks
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- uses: gitleaks/gitleaks-action@v2
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- [Project] Plug Renovate, Gitleaks ([#112](https://github.com/Orange-OpenSource/floss-toolbox/issues/112))
1213
- [Licenses Inventory] Improve requirements for Python modules in use ([#108](https://github.com/Orange-OpenSource/floss-toolbox/issues/108))
1314
- [Project] Apply REUSE standards ([#114](https://github.com/Orange-OpenSource/floss-toolbox/issues/114))
1415
- [Utils] Add metrics and improve outputs for third-party generator scripts
15-
- [Project] Improve a bit CHANGELOG by leading scope keyword for each line
16+
- [Project] Improve a bit CHANGELOG by leading-scope-keyword for each line
1617

1718
## [2.15.0] - 2024-03-12
1819

README.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ _Python_ is also used.
1919
And a bit of _PHP_ because it is nice to use several languages we are not used to (stop the routine!).
2020
For these needs scripting is enough.
2121

22-
# Environment
22+
## Environment
2323

2424
You should have mainly the following environments bellow, but have a look on each folder README:
2525
- _Bash_ version **3.2.5**
2626
- _Ruby_ version **2.7.1**
2727
- _Python_ version **3.7**
2828

29-
# Project tree
29+
## Project tree
3030

3131
There are 5 folders containing scripts and programs to make your life a bit easier:
3232

@@ -38,10 +38,34 @@ There are 5 folders containing scripts and programs to make your life a bit easi
3838

3939
Feel free to read each README available in all of the subdirectories listed above.
4040

41-
# Dry run
41+
## Dry run
4242

4343
To be sure you have a ready-to-run project, you can run the following dry-run command which will check if runtimes, third party tools and files are available.
4444

4545
```shell
4646
bash dry-run.sh
47-
```
47+
```
48+
49+
## About the repository
50+
51+
### Renovate
52+
53+
[Renovate](https://docs.renovatebot.com/) is used to as to try to keep updated dependencies of the project.
54+
A _renovate.json_ must be added at the project root with cofiguration details ; but **the organization admins must enable it** (through the [admin console](https://developer.mend.io/)).
55+
56+
### Gitleaks
57+
58+
[Gitleaks](https://github.com/gitleaks/gitleaks) is used so as to look for secrets and leak of sensitive data.
59+
A _gitleaks.toml_ file has been placed at the project root, picked from the _Gitleaks_ repository, to define rules.
60+
A *gitleaks-action.yml* is also defined to define the GitHub Action to call and some secrets to use to do so.
61+
The *GITLEAKS_LICENSE* is defined in the organization level, **only the organization admins can make it visible to projects**.
62+
This key (dedicated to organization) has been asked to the *Gitleaks* team and received gratefully from them.
63+
64+
### DCO
65+
66+
The *Developer Certificate of Origin* is applied here thanks to a [Probot bot](https://probot.github.io/apps/dco/).
67+
On pull requests all commits must be signed off. This control is processed in an action.
68+
69+
### Dependabot
70+
71+
By default [Dependabot](https://docs.github.com/fr/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security#what-is-dependabot) is enabled for this project.

THIRD-PARTY.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,23 @@ This document contains the list of Third Party Softwares along with the license
66
Third Party Software may impose additional restrictions and it is the user's responsibility to ensure that they have met the licensing
77
requirements of the relevant license of the Third Party Software they are using.
88

9+
## For project
10+
11+
### gitleaks.toml
12+
13+
Copyright (c) 2019 Zachary Rice
14+
15+
The *gitleaks.toml* file was generated and distributed under the terms and conditions of the [MIT License](https://opensource.org/license/MIT).
16+
You may download the source code on the [following website](https://github.com/gitleaks/gitleaks).
17+
The local version has been modified by us since.
18+
919
## For "github" bucket
1020

1121
### Octokit
1222

1323
Version 6.1.1
1424

15-
Copyright 2009-2017 Wynn Netherland, Adam Stacoviak, Erik Michaels-Ober
25+
Copyright (c) 2009-2017 Wynn Netherland, Adam Stacoviak, Erik Michaels-Ober
1626

1727
*octokit.rb* is distributed under the terms and conditions of the [MIT License](https://opensource.org/license/MIT).
1828
You may download the source code on the [following website](https://github.com/octokit/octokit.rb).

0 commit comments

Comments
 (0)