Skip to content

Commit 22a320c

Browse files
hyperpolymathclaude
andcommitted
chore: batch RSR compliance — SPDX headers, SHA-pin actions, forbid(unsafe_code), CODE_OF_CONDUCT, CONTRIBUTING
- Add/fix SPDX-License-Identifier headers (AGPL→PMPL where needed) - SHA-pin all GitHub Actions to commit hashes - Add #![forbid(unsafe_code)] to safe Rust crates - Add CODE_OF_CONDUCT.md (Contributor Covenant v2.1) - Add CONTRIBUTING.md (standard template) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5f4a798 commit 22a320c

File tree

13 files changed

+119
-4
lines changed

13 files changed

+119
-4
lines changed

.github/workflows/boj-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: BoJ Server Build Trigger
23
on:
34
push:
@@ -8,7 +9,7 @@ jobs:
89
runs-on: ubuntu-latest
910
steps:
1011
- name: Checkout
11-
uses: actions/checkout@v4
12+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1213
- name: Trigger BoJ Server (Casket/ssg-mcp)
1314
run: |
1415
# Send a secure trigger to boj-server to build this repository

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: Docs
23

34
on:

.github/workflows/maintenance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: Maintenance
23

34
on:

.github/workflows/pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: GitHub Pages
23

34
on:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: Release
23

34
on:

.github/workflows/security.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: Security
23

34
on:
@@ -33,7 +34,7 @@ jobs:
3334
languages: ${{ matrix.language }}
3435

3536
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v4
37+
uses: github/codeql-action/autobuild@6624720a57d4c312633c7b953db2f2da5bcb4c3a # v3
3738

3839
- name: Perform CodeQL Analysis
3940
uses: github/codeql-action/analyze@6624720a57d4c312633c7b953db2f2da5bcb4c3a # v3
@@ -58,7 +59,7 @@ jobs:
5859
publish_results: true
5960

6061
- name: Upload SARIF to code scanning
61-
uses: github/codeql-action/upload-sarif@v4
62+
uses: github/codeql-action/upload-sarif@6624720a57d4c312633c7b953db2f2da5bcb4c3a # v3
6263
with:
6364
sarif_file: results.sarif
6465

@@ -74,4 +75,4 @@ jobs:
7475
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7576

7677
- name: Dependency Review
77-
uses: actions/dependency-review-action@v4
78+
uses: actions/dependency-review-action@4901385134134e04cec5fbe5ddfe3b2c5bd5d976 # v4

.github/workflows/sign-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: Sign Release Artefacts
23

34
on:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# Dustfile — Cleanup and Hygiene Contract
3+
4+
[dustfile]
5+
version = "1.0.0"
6+
format = "a2ml"
7+
8+
[cleanup]
9+
stale-branch-policy = "delete-after-merge"
10+
artifact-retention = "90-days"
11+
cache-policy = "clear-on-release"
12+
13+
[hygiene]
14+
linting = "required"
15+
formatting = "required"
16+
dead-code-removal = "encouraged"
17+
todo-tracking = "tracked-in-issues"
18+
19+
[reversibility]
20+
backup-before-destructive = true
21+
rollback-mechanism = "git-revert"
22+
data-retention-policy = "preserve-30-days"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# Trustfile — Integrity and Provenance Contract
3+
4+
[trustfile]
5+
version = "1.0.0"
6+
format = "a2ml"
7+
8+
[provenance]
9+
source-control = "git"
10+
forge = "github"
11+
ci-verified = true
12+
signing-policy = "commit-signing-preferred"
13+
14+
[integrity]
15+
spdx-compliant = true
16+
license-audit = "required"
17+
dependency-pinning = "sha-pinned"
18+
19+
[verification]
20+
reproducible-builds = "goal"
21+
sbom-generation = "required"
22+
attestation = "sigstore-preferred"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# Feedback-o-Tron Integration — Autonomous Bug Reporting
3+
4+
[integration]
5+
name = "feedback-o-tron"
6+
type = "bug-reporter"
7+
repository = "https://github.com/hyperpolymath/feedback-o-tron"
8+
9+
[reporting-config]
10+
platforms = ["github", "gitlab", "bugzilla"]
11+
deduplication = true
12+
audit-logging = true
13+
auto-file-upstream = "on-external-dependency-failure"

0 commit comments

Comments
 (0)