Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry
common --registry=https://bcr.bazel.build

# score::mw::log
common --@score-baselibs//score/mw/log/flags:KRemote_Logging=False
common --@score-baselibs//score/json:base_library=nlohmann
common --@score_baselibs//score/mw/log/flags:KRemote_Logging=False
common --@score_baselibs//score/json:base_library=nlohmann
## default is a stdout logger which looks like dlt logs
## uncomment below to use score::mw::log instead of the stdout logger
# build --cxxopt=-DLC_LOG_SCORE_MW_LOG
Expand Down
15 changes: 15 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Comment out as not in score yet
# * @eclipse-score/infrastructure-tooling-community
# .* @eclipse-score/infrastructure-tooling-community
# .github/CODEOWNERS @eclipse-score/technical-lead

# in separate <module_name> repositories:
#
# /docs @eclipse-score/process-community
# /docs/manual @eclipse-score/<module_name>/safety-manager
# /docs/release @eclipse-score/<module_name>/quality-manager @eclipse-score/<module_name>/module-lead
# /docs/safety_plan @eclipse-score/<module_name>/safety-manager @eclipse-score/<module_name>/module-lead
# /docs/safety_analysis @eclipse-score/<module_name>/safety-manager
# /docs/verification @eclipse-score/<module_name>/quality-manager @eclipse-score/<module_name>/safety-manager
# /components @eclipse-score/<module_name>/technical-lead
# /components/*/ @eclipse-score/<module_name>/automotive-score-committers
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Bugfix
about: 'Issue to track a bugfix'
title: 'Bugfix: Your bugfix title'
labels: 'codeowner_review'
assignees: ''

---

> [!IMPORTANT]
> Make sure to link this issue with the PR for your bugfix.


11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Improvement
about: 'Issue to track a improvement'
title: 'Improvement: Your improvement title'
labels: 'codeowner_review'
assignees: ''

---

> [!IMPORTANT]
> Make sure to link this issue with the PR for your improvement.
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/bug_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Bugfix

> [!IMPORTANT]
> Use this template only for bugfixes that do not influence topics covered by contribution requests or improvements.

> [!CAUTION]
> Make sure to submit your pull-request as **Draft** until you are ready to have it reviewed by the Committers.

## Description

[A short description of the bug being fixed by the contribution.]

## Related ticket

> [!IMPORTANT]
> Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such
> ticket yet, create one via [this issue template](../ISSUE_TEMPLATE/new?template=bug_fix.md).

closes [ISSUE-NUMBER] (bugfix ticket)
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Improvement

> [!IMPORTANT]
> Use this template only for improvement that do not influence topics covered by contribution requests or bug fixes.

> [!CAUTION]
> Make sure to submit your pull-request as **Draft** until you are ready to have it reviewed by the Committers.

## Description

[A short description of the improvement being addressed by the contribution.]

## Related ticket

> [!IMPORTANT]
> Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such
> ticket yet, create one via [this issue template](../ISSUE_TEMPLATE/new?template=improvement.md).

closes [ISSUE-NUMBER] (improvement ticket)
43 changes: 43 additions & 0 deletions .github/actions/gitlint/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# *******************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: "Gitlint Action"
description: "An action to install and run Gitlint on PR commits"
inputs:
pr-number:
description: "Pull Request number used to fetch commits"
required: true
base-branch:
description: "Base branch to compare commits against (default: origin/main)"
default: "origin/main"
required: false
runs:
using: "docker"
image: "jorisroovers/gitlint:0.19.1"
entrypoint: /bin/sh
args:
- -c
- |
git config --global --add safe.directory /github/workspace && \
git fetch origin +refs/heads/main:refs/remotes/origin/main && \
git fetch origin +refs/pull/${{ inputs.pr-number }}/head && \
# Fetch the upstream .gitlint config from eclipse-score/score
git clone --depth 1 https://github.com/eclipse-score/score.git /tmp/score-gitlint && \
if ! gitlint --config /tmp/score-gitlint/.gitlint --commits origin/main..HEAD; then \
echo -e "\nWARNING: Your commit message does not follow the required format." && \
echo "Formatting rules: https://eclipse-score.github.io/score/main/contribute/general/git.html#commit-message-format" && \
echo -e "To fix your commit message, run:\n" && \
echo " git commit --amend" && \
echo "Then update your commit (fix gitlint warnings). Finally, force-push:" && \
echo " git push --force-with-lease" && \
exit 1; \
fi
35 changes: 35 additions & 0 deletions .github/workflows/build_and_test_host_gcc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# *******************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

# Workflow configuration for S-CORE CI - Bazel Build & Test lifecycle module
# This workflow runs Bazel build and test when triggered by specific pull request events.
name: Bazel Build & Test lifecycle module
on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
jobs:
build_and_test_gcc_host_gcc12:
runs-on: ubuntu-24.04
steps:
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Checkout repository
uses: actions/checkout@v4.2.2
- name: Bazel build lifecycle
run: |
bazel build //...
62 changes: 62 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
# name: "CodeQL Advanced"

# on:
# push:
# branches: ["main"]
# pull_request:
# branches: ["main"]

# jobs:
# analyze:
# name: Analyze (${{ matrix.language }})
# runs-on: ubuntu-latest
# permissions:
# security-events: write
# packages: read
# actions: read
# contents: read

# strategy:
# fail-fast: false
# matrix:
# include:
# - language: c-cpp
# build-mode: manual
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4

# # Initializes the CodeQL tools for scanning.
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v3
# with:
# languages: ${{ matrix.language }}
# build-mode: ${{ matrix.build-mode }}
# packs: codeql/misra-cpp-coding-standards

# - if: matrix.build-mode == 'manual'
# shell: bash
# run: |
# bazel build //...
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v3
# with:
# category: "/language:${{matrix.language}}"
# output: sarif-results.sarif

# - name: Upload Artifact
# uses: actions/upload-artifact@v4
# with:
# name: sarif-results.sarif
# path: sarif-results.sarif
23 changes: 23 additions & 0 deletions .github/workflows/copyright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# *******************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Copyright checks
on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
jobs:
copyright-check:
uses: eclipse-score/cicd-workflows/.github/workflows/copyright.yml@main
with:
bazel-target: "run //:copyright.check"
23 changes: 23 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# *******************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Formatting checks
on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
jobs:
formatting-check:
uses: eclipse-score/cicd-workflows/.github/workflows/format.yml@main
with:
bazel-target: "test //:format.check" # optional, this is the default
30 changes: 30 additions & 0 deletions .github/workflows/gitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# *******************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Gitlint check
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint-commits:
name: check-commit-messages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Gitlint Action
if: ${{ github.event_name == 'pull_request' }}
uses: ./.github/actions/gitlint
with:
pr-number: ${{ github.event.number }}
28 changes: 28 additions & 0 deletions .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# *******************************************************************************
# Copyright (c) 2025 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: License check preparation
on:
pull_request_target:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
permissions:
pull-requests: write
issues: write
jobs:
license-check:
uses: eclipse-score/cicd-workflows/.github/workflows/license-check.yml@main
with:
repo-url: "${{ github.server_url }}/${{ github.repository }}"
secrets:
dash-api-token: ${{ secrets.ECLIPSE_GITLAB_API_TOKEN }}
Loading
Loading