Skip to content
Open
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
24 changes: 24 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Contributors to Eclipse OpenSOVD (see CONTRIBUTORS)
#
# 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

build --java_language_version=17
build --tool_java_language_version=17
build --java_runtime_version=remotejdk_17
build --tool_java_runtime_version=remotejdk_17
build --@score-baselibs//score/json:base_library=nlohmann
build --@score-baselibs//score/mw/log/flags:KRemote_Logging=False

test --test_output=errors

common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/
common --registry=https://bcr.bazel.build

# allow empty globs for docs
build --noincompatible_disallow_empty_glob
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.3.0
10 changes: 10 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Contributors to Eclipse OpenSOVD (see CONTRIBUTORS)
#
# 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

# This file specifies who owns what in the repository
# Syntax: <pattern> <owner(s)>

Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# *******************************************************************************
# Copyright (c) 2026 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: Security Audit

on:
pull_request:
branches: [main]
push:
branches: [main]
merge_group:
types: [checks_requested]
schedule:
# Run weekly on Monday at 06:00 UTC to catch newly disclosed advisories
- cron: "0 6 * * 1"

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
cargo-audit:
name: Cargo Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install cargo-audit
uses: taiki-e/install-action@23db74cab27cd77071e076a00b569de9549cf0dd # v2.48.8
with:
tool: cargo-audit@0.22.1

- name: Run cargo audit
run: cargo audit
37 changes: 37 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Contributors to Eclipse OpenSOVD (see CONTRIBUTORS)
#
# 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

name: Build & Test

on:
pull_request:
branches: [main]
push:
branches: [main]
merge_group:
types: [checks_requested]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
uses: eclipse-opensovd/cicd-workflows/.github/workflows/build-and-test.yml@fef5cc7b2d4c4c6593b105402fbf4edd54db7d5a
with:
rust-version: "nightly-2025-07-14"
cargo-locked: true
cargo-test-args: "--workspace --all-targets"
bazel-enabled: true
bazel-build-targets: "//src/... //tests/..."
bazel-test-targets: "//src/... //tests/..."
35 changes: 35 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Contributors to Eclipse OpenSOVD (see CONTRIBUTORS)
#
# 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

name: Coverage

on:
pull_request:
branches: [main]
push:
branches: [main]
merge_group:
types: [checks_requested]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
coverage:
uses: eclipse-opensovd/cicd-workflows/.github/workflows/coverage.yml@fef5cc7b2d4c4c6593b105402fbf4edd54db7d5a
with:
cargo-locked: true
coverage-threshold: 90
exclude-crates: "xtask"
ignore-filename-regex: "test_utils|dfm_test_utils"
33 changes: 33 additions & 0 deletions .github/workflows/miri.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Contributors to Eclipse OpenSOVD (see CONTRIBUTORS)
#
# 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

name: Miri

on:
pull_request:
branches: [main]
push:
branches: [main]
merge_group:
types: [checks_requested]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
miri:
uses: eclipse-opensovd/cicd-workflows/.github/workflows/miri.yml@fef5cc7b2d4c4c6593b105402fbf4edd54db7d5a
with:
cargo-locked: true
exclude-crates: "integration_tests xtask"
56 changes: 56 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Contributors to Eclipse OpenSOVD (see CONTRIBUTORS)
#
# 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

name: PR Lint and Format Checks

on:
pull_request:
workflow_dispatch:

permissions:
contents: read
checks: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
format_and_clippy_for_pr:
runs-on: ubuntu-latest
name: "PR Lint and Format"
env:
IS_FORK: ${{ github.event.pull_request.head.repo.fork == true }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: false
- name: Format and Clippy - Nightly toolchain pinned
uses: eclipse-opensovd/cicd-workflows/rust-lint-and-format-action@fef5cc7b2d4c4c6593b105402fbf4edd54db7d5a
with:
toolchain: nightly-2025-07-14
github-token: ${{ secrets.GITHUB_TOKEN }}
fail-on-format-error: "true"
fail-on-clippy-error: "true"
clippy-deny-warnings: "true"
reporter: ${{ env.IS_FORK == 'true' && 'github-pr-annotations' || 'github-pr-review' }}
- name: Format and Clippy - Nightly toolchain latest
id: nightly-clippy
continue-on-error: true
uses: eclipse-opensovd/cicd-workflows/rust-lint-and-format-action@fef5cc7b2d4c4c6593b105402fbf4edd54db7d5a
with:
toolchain: nightly
github-token: ${{ secrets.GITHUB_TOKEN }}
fail-on-format-error: "false"
fail-on-clippy-error: "false"
clippy-deny-warnings: "false"
reporter: ${{ env.IS_FORK == 'true' && 'github-annotations' || 'github-pr-check' }}
32 changes: 32 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Contributors to Eclipse OpenSOVD (see CONTRIBUTORS)
#
# 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

name: pre-commit

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Run checks
uses: eclipse-opensovd/cicd-workflows/pre-commit-action@fef5cc7b2d4c4c6593b105402fbf4edd54db7d5a
24 changes: 19 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025 The Eclipse OpenSOVD contributors
# SPDX-FileCopyrightText: 2026 The Eclipse OpenSOVD contributors
#
# SPDX-License-Identifier: Apache-2.0

Expand All @@ -21,9 +21,13 @@ pip-delete-this-directory.txt

# Rust
target/
Cargo.lock
.sccache/

# Bazel
/bazel-*
MODULE.bazel.lock
user.bazelrc

# C++
*.o
*.obj
Expand All @@ -50,9 +54,9 @@ compile_commands.json
.idea/
*.iml

# VS Code
.vscode/
.vscode*
# VS Code (user-specific settings only, shared settings are tracked)
.vscode/*.code-workspace
.vscode/.ropeproject

# Sublime Text
*.sublime-project
Expand Down Expand Up @@ -82,6 +86,16 @@ nb-configuration.xml
Thumbs.db
.bash_history

# Sphinx / docs build
/_build

# Ruff
.ruff_cache

# Vale (editorial style guide)
.vale.ini
styles/

# General
.cache/
.direnv/
Expand Down
Loading