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
9 changes: 7 additions & 2 deletions .githooks/validate-spdx-workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@

# Check for SPDX header in first non-comment line
HAS_SPDX=false
while IFS= read -r line; do
while IFS= read -r line || [ $? -eq 0 ]; do

Check failure on line 15 in .githooks/validate-spdx-workflows.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_standards&issues=AaCWLUEmY9lWA-gfIe4p&open=AaCWLUEmY9lWA-gfIe4p&pullRequest=777
[[ "$line" =~ ^[[:space:]]*$ ]] && continue
[[ "$line" =~ ^[[:space:]]*# ]] && { echo "$line" | grep -qE 'SPDX-License-Identifier' && HAS_SPDX=true; continue; }
[[ "$line" =~ ^[[:space:]]*# ]] && {
if echo "$line" | grep -qE 'SPDX-License-Identifier'; then
HAS_SPDX=true
continue
fi
}
break
done < "$file"

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/hypatia-scan-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ jobs:
id: scan
run: |
set -euo pipefail
# Exactly one JSON array of findings, each with a recognised severity.
# Missing/truncated output is a scanner error, never an empty clean scan.
if [ ! -s hypatia-findings.json ] || ! jq -e '
type == "array" and length > 0 and all(.[];
# Exactly one JSON document that is a flat array of findings, each with a recognised severity.
# An empty array [] means no findings; multiple documents or missing/truncated output is a scanner error.
if [ ! -s hypatia-findings.json ] || ! jq -e -s '
length == 1 and (.[0] | type == "array" and all(.[];
type == "object" and (.severity as $s |
["critical", "high", "medium", "low", "info", "informational"] | index($s) != null))
' hypatia-findings.json >/dev/null; then
Expand Down
22 changes: 0 additions & 22 deletions 0-ai-gatekeeper-protocol/.github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,18 @@ updates:
patterns:
- "*"
open-pull-requests-limit: 2

# Rust/Cargo
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 0

# Elixir/Mix
- package-ecosystem: "mix"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Node.js/npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Python/pip
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Nix flakes
- package-ecosystem: "nix"
directory: "/"
schedule:
interval: "weekly"
3 changes: 0 additions & 3 deletions rhodium-standard-repositories/.github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ updates:
- "*"
open-pull-requests-limit: 2
- package-ecosystem: "nix"
directory: "/"
schedule:
interval: "weekly"
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,18 @@ updates:
patterns:
- "*"
open-pull-requests-limit: 2

# Rust/Cargo
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 0

# Elixir/Mix
- package-ecosystem: "mix"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Node.js/npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Python/pip
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Nix flakes
- package-ecosystem: "nix"
directory: "/"
schedule:
interval: "weekly"
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ updates:
- "*"
open-pull-requests-limit: 2
- package-ecosystem: "nix"
directory: "/"
schedule:
interval: "weekly"
Original file line number Diff line number Diff line change
@@ -1,32 +1,2 @@
# SPDX-License-Identifier: MPL-2.0
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns:
- "*"
open-pull-requests-limit: 2

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 0

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3
Original file line number Diff line number Diff line change
@@ -1,32 +1,2 @@
# SPDX-License-Identifier: MPL-2.0
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns:
- "*"
open-pull-requests-limit: 2

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 0

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,18 @@ updates:
patterns:
- "*"
open-pull-requests-limit: 2

# Rust/Cargo
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 0

# Elixir/Mix
- package-ecosystem: "mix"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Node.js/npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Python/pip
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Nix flakes
- package-ecosystem: "nix"
directory: "/"
schedule:
interval: "weekly"
Original file line number Diff line number Diff line change
@@ -1,34 +1,2 @@
# SPDX-License-Identifier: MPL-2.0
version: 2
updates:
# 1. Maintain GitHub Actions (workflows)
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
# THE MAGIC PART: Groups updates into one PR
groups:
dependencies:
patterns:
- "*"
open-pull-requests-limit: 2

# 2. Maintain Rust (cargo)
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
groups:
dependencies:
patterns:
- "*"
open-pull-requests-limit: 0

# 3. Maintain NPM (if you have package.json)
- package-ecosystem: "deno"
directory: "/"
schedule:
interval: "daily"
groups:
dependencies:
patterns:
- "*"
Original file line number Diff line number Diff line change
@@ -1,32 +1,2 @@
# SPDX-License-Identifier: MPL-2.0
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns:
- "*"
open-pull-requests-limit: 2

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 0

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3
Original file line number Diff line number Diff line change
@@ -1,36 +1,2 @@
# SPDX-License-Identifier: MPL-2.0
version: 2
updates:
# Rust dependencies
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
labels:
- "dependencies"
- "rust"
commit-message:
prefix: "chore(deps)"

# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
- "ci"
commit-message:
prefix: "chore(ci)"
open-pull-requests-limit: 2

# Docker
- package-ecosystem: "docker"
directory: "/container"
schedule:
interval: "daily"
labels:
- "dependencies"
- "container"
commit-message:
prefix: "chore(container)"
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,18 @@ updates:
patterns:
- "*"
open-pull-requests-limit: 2

# Rust/Cargo
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 0

# Elixir/Mix
- package-ecosystem: "mix"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Node.js/npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Python/pip
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3

# Nix flakes
- package-ecosystem: "nix"
directory: "/"
schedule:
interval: "weekly"
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ updates:
- "*"
open-pull-requests-limit: 2
- package-ecosystem: "nix"
directory: "/"
schedule:
interval: "weekly"
Loading
Loading