Skip to content

Commit 520c348

Browse files
hyperpolymathhypatia-autofix
andcommitted
chore: hypatia auto-fix (28 formulaic fixes)
Applied by auto-fix-formulaic.sh: - SHA-pinned unpinned GitHub Actions - Added missing workflow permissions - Fixed license headers Co-Authored-By: hypatia-autofix <noreply@hyperpolymath.github.io>
1 parent b386cd3 commit 520c348

9 files changed

Lines changed: 35 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
permissions: read-all
3+
24
name: CI
35

46
on:
@@ -40,7 +42,7 @@ jobs:
4042
has_docker: ${{ steps.detect.outputs.has_docker }}
4143
steps:
4244
- name: Checkout
43-
uses: actions/checkout@v4
45+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4446

4547
- name: Make scripts executable
4648
run: chmod +x ci-scripts/*.sh
@@ -73,7 +75,7 @@ jobs:
7375
needs: detect
7476
steps:
7577
- name: Checkout
76-
uses: actions/checkout@v4
78+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
7779

7880
- name: Setup Node.js
7981
if: needs.detect.outputs.has_nodejs == 'true'
@@ -127,7 +129,7 @@ jobs:
127129
go-version: '1.22'
128130
steps:
129131
- name: Checkout
130-
uses: actions/checkout@v4
132+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
131133

132134
- name: Setup Node.js
133135
if: needs.detect.outputs.has_nodejs == 'true'
@@ -191,7 +193,7 @@ jobs:
191193
needs: [detect, lint, test]
192194
steps:
193195
- name: Checkout
194-
uses: actions/checkout@v4
196+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
195197

196198
- name: Setup Node.js
197199
if: needs.detect.outputs.has_nodejs == 'true'
@@ -244,7 +246,7 @@ jobs:
244246
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
245247
steps:
246248
- name: Checkout
247-
uses: actions/checkout@v4
249+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
248250
with:
249251
fetch-depth: 0
250252

@@ -272,7 +274,7 @@ jobs:
272274
if: needs.detect.outputs.has_docker == 'true'
273275
steps:
274276
- name: Checkout
275-
uses: actions/checkout@v4
277+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
276278

277279
- name: Set up Docker Buildx
278280
uses: docker/setup-buildx-action@v3
@@ -317,7 +319,7 @@ jobs:
317319
contents: write
318320
steps:
319321
- name: Checkout
320-
uses: actions/checkout@v4
322+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
321323

322324
- name: Download artifacts
323325
uses: actions/download-artifact@v4

.github/workflows/codeql.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Scans for security vulnerabilities and coding errors
44
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning
55

6+
permissions: read-all
7+
68
name: "CodeQL Security Analysis"
79

810
on:
@@ -28,7 +30,7 @@ jobs:
2830
matrix: ${{ steps.detect.outputs.matrix }}
2931
steps:
3032
- name: Checkout
31-
uses: actions/checkout@v4
33+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3234

3335
- name: Detect languages
3436
id: detect
@@ -106,7 +108,7 @@ jobs:
106108

107109
steps:
108110
- name: Checkout repository
109-
uses: actions/checkout@v4
111+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
110112

111113
# Setup for different languages
112114
- name: Setup Node.js

.github/workflows/guix-nix-policy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
permissions: read-all
3+
24
name: Guix/Nix Package Policy
35
on: [push, pull_request]
46
jobs:
57
check:
68
runs-on: ubuntu-latest
79
steps:
8-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
911
- name: Enforce Guix primary / Nix fallback
1012
run: |
1113
# Check for package manager files

.github/workflows/jekyll-gh-pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3232
- name: Setup Pages
33-
uses: actions/configure-pages@v5
33+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
3434
- name: Build with Jekyll
35-
uses: actions/jekyll-build-pages@v1
35+
uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1
3636
with:
3737
source: ./
3838
destination: ./_site
3939
- name: Upload artifact
40-
uses: actions/upload-pages-artifact@v3
40+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
4141

4242
# Deployment job
4343
deploy:
@@ -49,4 +49,4 @@ jobs:
4949
steps:
5050
- name: Deploy to GitHub Pages
5151
id: deployment
52-
uses: actions/deploy-pages@v4
52+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/quality.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
permissions: read-all
3+
24
name: Code Quality
35
on: [push, pull_request]
46

57
jobs:
68
lint:
79
runs-on: ubuntu-latest
810
steps:
9-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1012

1113
- name: Check file permissions
1214
run: |
@@ -36,7 +38,7 @@ jobs:
3638
docs:
3739
runs-on: ubuntu-latest
3840
steps:
39-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4042
- name: Check documentation
4143
run: |
4244
MISSING=""

.github/workflows/rsr-antipattern.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm
66
# Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme
77

8+
permissions: read-all
9+
810
name: RSR Anti-Pattern Check
911

1012
on:
@@ -17,7 +19,7 @@ jobs:
1719
antipattern-check:
1820
runs-on: ubuntu-latest
1921
steps:
20-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2123

2224
- name: Check for TypeScript
2325
run: |

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
security-events: write
1616
id-token: write
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1919
with:
2020
persist-credentials: false
2121

.github/workflows/security-policy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
permissions: read-all
3+
24
name: Security Policy
35
on: [push, pull_request]
46
jobs:
57
check:
68
runs-on: ubuntu-latest
79
steps:
8-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
911
- name: Security checks
1012
run: |
1113
FAILED=false

.github/workflows/wellknown-enforcement.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
permissions: read-all
3+
24
name: Well-Known Standards (RFC 9116 + RSR)
35
on:
46
push:
@@ -18,7 +20,7 @@ jobs:
1820
validate:
1921
runs-on: ubuntu-latest
2022
steps:
21-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2224

2325
- name: RFC 9116 security.txt validation
2426
run: |

0 commit comments

Comments
 (0)