Skip to content

Commit 3a63a7c

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 4cd5daa commit 3a63a7c

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ jobs:
8888

8989
- name: Setup Python
9090
if: needs.detect.outputs.has_python == 'true'
91-
uses: actions/setup-python@v5
91+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
9292
with:
9393
python-version: '3.12'
9494
cache: 'pip'
9595

9696
- name: Setup Go
9797
if: needs.detect.outputs.has_go == 'true'
98-
uses: actions/setup-go@v5
98+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
9999
with:
100100
go-version: '1.22'
101101
cache: true
@@ -142,14 +142,14 @@ jobs:
142142

143143
- name: Setup Python
144144
if: needs.detect.outputs.has_python == 'true'
145-
uses: actions/setup-python@v5
145+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
146146
with:
147147
python-version: ${{ matrix.python-version }}
148148
cache: 'pip'
149149

150150
- name: Setup Go
151151
if: needs.detect.outputs.has_go == 'true'
152-
uses: actions/setup-go@v5
152+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
153153
with:
154154
go-version: ${{ matrix.go-version }}
155155
cache: true
@@ -182,7 +182,7 @@ jobs:
182182

183183
- name: Upload coverage
184184
if: success() && github.event_name == 'push'
185-
uses: codecov/codecov-action@v4
185+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
186186
with:
187187
token: ${{ secrets.CODECOV_TOKEN }}
188188
fail_ci_if_error: false
@@ -206,13 +206,13 @@ jobs:
206206

207207
- name: Setup Python
208208
if: needs.detect.outputs.has_python == 'true'
209-
uses: actions/setup-python@v5
209+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
210210
with:
211211
python-version: '3.12'
212212

213213
- name: Setup Go
214214
if: needs.detect.outputs.has_go == 'true'
215-
uses: actions/setup-go@v5
215+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
216216
with:
217217
go-version: '1.22'
218218

@@ -278,19 +278,19 @@ jobs:
278278
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
279279

280280
- name: Set up Docker Buildx
281-
uses: docker/setup-buildx-action@v3
281+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
282282

283283
- name: Login to GitHub Container Registry
284284
if: github.event_name == 'push'
285-
uses: docker/login-action@v3
285+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
286286
with:
287287
registry: ghcr.io
288288
username: ${{ github.actor }}
289289
password: ${{ secrets.GITHUB_TOKEN }}
290290

291291
- name: Extract metadata
292292
id: meta
293-
uses: docker/metadata-action@v5
293+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
294294
with:
295295
images: ghcr.io/${{ github.repository }}
296296
tags: |
@@ -301,7 +301,7 @@ jobs:
301301
type=sha
302302
303303
- name: Build and push
304-
uses: docker/build-push-action@v5
304+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
305305
with:
306306
context: .
307307
push: ${{ github.event_name == 'push' }}
@@ -329,7 +329,7 @@ jobs:
329329
path: dist/
330330

331331
- name: Create Release
332-
uses: softprops/action-gh-release@v1
332+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
333333
with:
334334
generate_release_notes: true
335335
files: dist/*

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,26 +120,26 @@ jobs:
120120

121121
- name: Setup Python
122122
if: matrix.language == 'python'
123-
uses: actions/setup-python@v5
123+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
124124
with:
125125
python-version: '3.12'
126126

127127
- name: Setup Go
128128
if: matrix.language == 'go'
129-
uses: actions/setup-go@v5
129+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
130130
with:
131131
go-version: '1.22'
132132

133133
- name: Setup Java
134134
if: matrix.language == 'java-kotlin'
135-
uses: actions/setup-java@v4
135+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
136136
with:
137137
distribution: 'temurin'
138138
java-version: '21'
139139

140140
- name: Setup .NET
141141
if: matrix.language == 'csharp'
142-
uses: actions/setup-dotnet@v4
142+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
143143
with:
144144
dotnet-version: '8.0.x'
145145

0 commit comments

Comments
 (0)