Skip to content

Commit e84fd94

Browse files
pylappludovic35renovate[bot]
authored
Version v0.19.0 (#977)
Release of version 0.19.0 Embeds token libraries: - Core OUDS version: 1.3.0 - Core Orange version: 1.1.0 - Brand Orange version: 1.5.0 - Core Sosh version: 1.1.0 - Brand Sosh version: 1.5.0 - Core Wireframe version: 1.0.0 - Brand Wireframe version: 1.5.0 - Brand Orange Business Tools version: 1.5.0 - Brand Orange Inverse version: 1.5.0 See below the full CHANGELOG details. Added: - Predefined theme tunings for Orange Business and Orange France Changed: - Update `SwiftFormat` Swift Package from v0.57.2 to v0.58.0 - Update `ruby/setup-ruby` GitHub Actions action from v1.257.0 to v1.263.0 - Swift package `SwiftLintPlugins` from v0.60.0 to v0.60.1 - Update various GitHub Actions workflows dependencies - Tuning of themes (like rounded corners) (#951) Fixed: - Button in minimal hierarchy does not handle the hover state (#942) - Vocalisation of badge with icons (#956) - Badge component does not have bigger sizes if text sizes is increased (#844) Co-authored-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> Co-authored-by: Ludovic Pinel <ludovic.pinel@orange.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com>
2 parents 2ba40fe + f513e92 commit e84fd94

File tree

49 files changed

+1025
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1025
-160
lines changed

.github/DEVELOP.md

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
- [Commits, changelog, release note, versioning](#commits-changelog-release-note-versioning)
1212
* [About commits](#about-commits)
1313
* [About release note and changelog](#about-release-note-and-changelog)
14+
* [Integration of tokenator updates](#integration-of-tokenator-updates)
15+
* [Verifying commits cryptographic signatures](#verifying-commits-cryptographic-signatures)
1416
- [Use of Gitleaks](#use-of-gitleaks)
1517
- [Linter](#linter)
1618
- [Formater](#formater)
@@ -272,6 +274,41 @@ chore(🤖): update `OpacityRawTokens` (tokenator generation 20241021134644) (#2
272274
Tokens library v0.4.1
273275
```
274276

277+
#### Verifying commits cryptographic signatures
278+
279+
Some core maintainers in the project use GPG so cryptographically sign their commits.
280+
You can check the commits status with the commands below:
281+
```shell
282+
# Of course we suppose you are a bit used to GPG and have it installed
283+
# Update your keychain of GPG keys and getthe online the ones for the maintainers
284+
# For example GPG key identifier of @pylapp is "8030BBE06B4F48F95BD082DA7D5AE4DCFF3A3435"
285+
286+
# This command can take a lot of time, maybe try the next one
287+
gpg --refresh-keys
288+
gpg --keyserver https://key.openpgp.org --recv-keys 8030BBE06B4F48F95BD082DA7D5AE4DCFF3A3435
289+
290+
# If none of this command works, contact the maintainers to get their public key to add in your keychain and run
291+
gpg --import path/to/asc/key/file
292+
293+
# Then check if the key is in your keychain
294+
gpg --list-keys --keyid-format=short
295+
296+
# If you run "gpg --check-sigs" you may notice they keys are not signed (unknown trust), that's not unexpected
297+
298+
# Then run the command to verify the commit status using for example its hash
299+
git verify-commit the-commit-hash
300+
# Or get more logs
301+
git log --show-signature
302+
```
303+
304+
In addition, GitHub also provides a feature of commits veritification named [Vigilant mode](https://docs.github.com/en/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits).
305+
In few words, if the commit was signed with the committer's verified signature, the commit is *verified*.
306+
307+
> [!CAUTION]
308+
> Some maintainers do not use GPG or SSH signing for commits, so the documentation commits can be seen as "unverified"
309+
> and some commits can have empty status because GitHub Vigilant Mode is not enabled for everyone
310+
> and some commits can be unsigned.
311+
275312
### About release note and changelog
276313

277314
We try also to apply [keep a changelog](https://keepachangelog.com/en/1.0.0/), and [semantic versioning](https://semver.org/spec/v2.0.0.html) both with [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/).
@@ -425,15 +462,20 @@ To update dependencies of the project, supossing *Renovate* for example provides
425462

426463
### GitHub Action
427464

428-
We use *GitHub Actions* so as to define a workflow with some actions to build and test the library.
465+
We use *GitHub Actions* so as to define several workflows with some actions to build, test, check, documentation and audit the library.
466+
429467
It will help us to ensure code on pull requests or being merged compiles and has all tests green.
468+
430469
Workflows are the following:
431-
- [build and run unit tests](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/build-and-test.yml)
432-
- [check if there are secrets leaks](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/gitleaks.yml).
433-
- [check if there are localizations troubles](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/swiftpolyglot.yml)
434-
- [check if there is dead code](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/periphery.yml)
435-
- [run linter](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/swiftlint.yml)
436-
- [generate documentation](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/build-documentation.yml)
470+
- [build-and-test](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/build-and-test.yml) to build and run unit tests
471+
- [build-documentation](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/build-documentation.yml) to ensure documentation can be built from sources without warnings
472+
- [codeql](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/codeql.yml) to automated security checks
473+
- [dependency-review](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/codeql.yml) to scan dependency manifest files surfacing known-vulnerable versions of the packages declared or updated in pull requests
474+
- [gitleaks](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/gitleaks.yml) to check if there are secrets leaks
475+
- [periphery](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/periphery.yml) to check if there is dead code
476+
- [scorecard](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/scorecard.yml) to buold the OpenSSF score card on README
477+
- [swiftlint](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/swiftlint.yml) to check if there is no linter warnings
478+
- [swiftpolyglot](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/swiftpolyglot.yml) to check if there are localizations troubles
437479

438480
We use also two GitHub apps making controls on pull requests and defining wether or not prerequisites are filled or not.
439481
There is one control to check if [PR template are all defined ](https://github.com/stilliard/github-task-list-completed), and one if [DCO is applied](https://probot.github.io/apps/dco/).

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,23 @@ on:
3939
- develop
4040
- '*'
4141

42+
permissions:
43+
contents: read
44+
4245
jobs:
4346
# Build the library
4447
build:
4548
runs-on: macos-15
4649
steps:
4750
- name: Checkout code
48-
uses: actions/checkout@v5
51+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4952

5053
- name: Set up Xcode 16.4.0
5154
run: |
5255
sudo xcode-select -s /Applications/Xcode_16.4.0.app/Contents/Developer
5356
5457
- name: Set up Ruby
55-
uses: ruby/setup-ruby@v1
58+
uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0, https://github.com/ruby/setup-ruby
5659
with:
5760
ruby-version: '3.3'
5861

@@ -69,14 +72,14 @@ jobs:
6972
runs-on: macos-15
7073
steps:
7174
- name: Checkout code
72-
uses: actions/checkout@v5
75+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7376

7477
- name: Set up Xcode 16.4.0
7578
run: |
7679
sudo xcode-select -s /Applications/Xcode_16.4.0.app/Contents/Developer
7780
7881
- name: Set up Ruby
79-
uses: ruby/setup-ruby@v1
82+
uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0, https://github.com/ruby/setup-ruby
8083
with:
8184
ruby-version: '3.3'
8285

.github/workflows/build-documentation.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,16 @@ on:
3838
- develop
3939
- '*'
4040

41+
permissions:
42+
contents: read
43+
4144
jobs:
4245
# Build the documentation to check if everything works well
4346
build-documentation:
4447
runs-on: macos-15
4548
steps:
4649
- name: Checkout code
47-
uses: actions/checkout@v5
50+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4851

4952
- name: Set up Xcode 16.4.0
5053
run: |

.github/workflows/codeql.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
#
2+
# Software Name: Orange Unified Design System
3+
# SPDX-FileCopyrightText: Copyright (c) Orange SA
4+
# SPDX-License-Identifier: MIT
5+
#
6+
# This software is distributed under the MIT license,
7+
# the text of which is available at https://opensource.org/license/MIT/
8+
# or see the "LICENSE" file for more details.
9+
#
10+
# Authors: See CONTRIBUTORS.txt
11+
# Software description: A SwiftUI components library with code examples for Orange Unified Design System
12+
#
13+
14+
# Generated thanks to https://app.stepsecurity.io/securerepo
15+
16+
# For most projects, this workflow file will not need changing; you simply need
17+
# to commit it to your repository.
18+
#
19+
# You may wish to alter this file to override the set of languages analyzed,
20+
# or to provide custom queries or build logic.
21+
#
22+
# ******** NOTE ********
23+
# We have attempted to detect the languages in your repository. Please check
24+
# the `language` matrix defined below to confirm you have the correct set of
25+
# supported CodeQL languages.
26+
#
27+
name: "CodeQL"
28+
29+
on:
30+
push:
31+
branches: ["develop"]
32+
pull_request:
33+
# The branches below must be a subset of the branches above
34+
branches: ["develop"]
35+
schedule:
36+
- cron: "0 0 * * 1"
37+
38+
permissions:
39+
contents: read
40+
41+
jobs:
42+
analyze:
43+
name: Analyze
44+
runs-on: macos-15
45+
permissions:
46+
actions: read
47+
contents: read
48+
security-events: write
49+
50+
strategy:
51+
fail-fast: false
52+
matrix:
53+
language: ["ruby", "swift"]
54+
# CodeQL supports [ $supported-codeql-languages ]
55+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
56+
57+
steps:
58+
- name: Checkout repository
59+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
60+
61+
# Initializes the CodeQL tools for scanning.
62+
- name: Initialize CodeQL
63+
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
64+
with:
65+
languages: ${{ matrix.language }}
66+
# If you wish to specify custom queries, you can do so here or in a config file.
67+
# By default, queries listed here will override any specified in a config file.
68+
# Prefix the list here with "+" to use these queries and those in the config file.
69+
70+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
71+
# If this step fails, then you should remove it and run the build manually (see below)
72+
- name: Autobuild
73+
uses: github/codeql-action/autobuild@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
74+
75+
# ℹ️ Command-line programs to run using the OS shell.
76+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
77+
78+
# If the Autobuild fails above, remove it and uncomment the following three lines.
79+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
80+
81+
# - run: |
82+
# echo "Run, Build Application using script"
83+
# ./location_of_script_within_repo/buildscript.sh
84+
85+
- name: Perform CodeQL Analysis
86+
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
87+
with:
88+
category: "/language:${{matrix.language}}"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#
2+
# Software Name: Orange Unified Design System
3+
# SPDX-FileCopyrightText: Copyright (c) Orange SA
4+
# SPDX-License-Identifier: MIT
5+
#
6+
# This software is distributed under the MIT license,
7+
# the text of which is available at https://opensource.org/license/MIT/
8+
# or see the "LICENSE" file for more details.
9+
#
10+
# Authors: See CONTRIBUTORS.txt
11+
# Software description: A SwiftUI components library with code examples for Orange Unified Design System
12+
#
13+
14+
# Generated thanks to https://app.stepsecurity.io/securerepo
15+
16+
# Dependency Review Action
17+
#
18+
# This Action will scan dependency manifest files that change as part of a Pull Request,
19+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
20+
# Once installed, if the workflow run is marked as required,
21+
# PRs introducing known-vulnerable packages will be blocked from merging.
22+
#
23+
# Source repository: https://github.com/actions/dependency-review-action
24+
25+
name: 'Dependency Review'
26+
on: [pull_request]
27+
28+
permissions:
29+
contents: read
30+
31+
jobs:
32+
dependency-review:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: 'Checkout Repository'
36+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
37+
- name: 'Dependency Review'
38+
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3

.github/workflows/gitleaks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,18 @@ on:
3636
branches-ignore:
3737
- main
3838

39+
permissions:
40+
contents: read
41+
3942
jobs:
4043
scan:
4144
name: gitleaks
4245
runs-on: ubuntu-latest
4346
steps:
44-
- uses: actions/checkout@v5
47+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4548
with:
4649
fetch-depth: 0
47-
- uses: gitleaks/gitleaks-action@v2
50+
- uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2.3.9, https://github.com/gitleaks/gitleaks-action
4851
env:
4952
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5053
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

.github/workflows/periphery.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,18 @@ on:
3737
branches-ignore:
3838
- main
3939

40+
permissions:
41+
contents: read
42+
4043
jobs:
4144
deadcode:
4245
runs-on: macos-15
4346
steps:
4447
- name: Checkout code
45-
uses: actions/checkout@v5
48+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4649

4750
- name: Set up Ruby
48-
uses: ruby/setup-ruby@v1
51+
uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0, https://github.com/ruby/setup-ruby
4952
with:
5053
ruby-version: '3.3'
5154

0 commit comments

Comments
 (0)