Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2023 Canonical Ltd.
# Copyright 2024 Intel Corporation

# Timeline for each ecosystem is intentionally staggered to spread
# Dependabot PRs over the week.
version: 2
updates:

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
day: "thursday"
time: "21:00"
timezone: "America/Los_Angeles"

- package-ecosystem: github-actions
directory: /
schedule:
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@
# Copyright 2023 Canonical Ltd.
# Copyright 2025 Intel Corporation
name: CI Pipeline

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

permissions:
contents: read

jobs:
build:
permissions:
Expand All @@ -25,7 +22,6 @@ jobs:
uses: omec-project/.github/.github/workflows/build.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
with:
branch_name: ${{ github.ref }}

static-analysis:
permissions:
contents: read
Expand All @@ -36,7 +32,6 @@ jobs:
uses: omec-project/.github/.github/workflows/static-analysis.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
with:
branch_name: ${{ github.ref }}

lint:
permissions:
contents: read
Expand All @@ -47,7 +42,6 @@ jobs:
with:
golangci_lint_version: 'v2.11.3'
branch_name: ${{ github.ref }}

license-check:
permissions:
contents: read
Expand All @@ -56,7 +50,6 @@ jobs:
uses: omec-project/.github/.github/workflows/license-check.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
with:
branch_name: ${{ github.ref }}

fossa-scan:
permissions:
contents: read
Expand All @@ -66,7 +59,6 @@ jobs:
uses: omec-project/.github/.github/workflows/fossa-scan.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
with:
branch_name: ${{ github.ref }}

unit-tests:
permissions:
contents: read
Expand All @@ -76,7 +68,6 @@ jobs:
uses: omec-project/.github/.github/workflows/unit-test.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
with:
branch_name: ${{ github.ref }}

analysis:
if: github.repository_owner == 'omec-project'
permissions:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024-Present Intel Corporation
name: Release Pipeline

on:
push:
branches:
- main
paths:
- "VERSION"

permissions:
contents: read

jobs:
tag-github:
permissions:
Expand All @@ -20,7 +17,6 @@ jobs:
id-token: write
uses: omec-project/.github/.github/workflows/tag-github.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
secrets: inherit

update-version:
needs: tag-github
permissions:
Expand All @@ -33,7 +29,6 @@ jobs:
changed: ${{ needs.tag-github.outputs.changed }}
version: ${{ needs.tag-github.outputs.version }}
secrets: inherit

sbom-source:
needs: tag-github
permissions:
Expand All @@ -46,7 +41,6 @@ jobs:
artifact_name: ${{ github.event.repository.name }}-${{ needs.tag-github.outputs.version }}.spdx.json
sbom_format: spdx-json
path: .

grype-scan:
needs: [tag-github, sbom-source]
permissions:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
on:
schedule:
- cron: "0 0 * * *"

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

jobs:
stale:
permissions:
Expand Down
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# SPDX-FileCopyrightText: 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

version: "2"
run:
concurrency: 4
Expand Down
89 changes: 46 additions & 43 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
# SPDX-FileCopyrightText: 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
- repo: local
hooks:
- id: gci
name: gci
entry: gci write
language: golang
types: [go]
additional_dependencies:
- github.com/daixiang0/gci@v0.14.0
- id: staticcheck
name: staticcheck
entry: staticcheck ./...
language: golang
types: [go]
additional_dependencies:
- honnef.co/go/tools/cmd/staticcheck@v0.7.0
pass_filenames: false
- id: go-test-race
name: go test -race
entry: go test -race ./... -count=1
language: system
types: [go]
pass_filenames: false
- repo: https://github.com/golangci/golangci-lint
rev: v2.11.3
hooks:
- id: golangci-lint-full
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- repo: https://codeberg.org/fsfe/reuse-tool
rev: v6.2.0
hooks:
- id: reuse
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
- repo: local
hooks:
- id: gci
name: gci
entry: gci write
language: golang
types: [go]
additional_dependencies:
- github.com/daixiang0/gci@v0.14.0
- id: staticcheck
name: staticcheck
entry: staticcheck ./...
language: golang
types: [go]
additional_dependencies:
- honnef.co/go/tools/cmd/staticcheck@v0.7.0
pass_filenames: false
- id: go-test-race
name: go test -race
entry: go test -race ./... -count=1
language: system
types: [go]
pass_filenames: false
- repo: https://github.com/golangci/golangci-lint
rev: v2.11.3
hooks:
- id: golangci-lint-full
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- id: yamlfmt
- repo: https://codeberg.org/fsfe/reuse-tool
rev: v6.2.0
hooks:
- id: reuse
Loading